Repository navigation
61 lines (57 loc) · 1.69 KB
/
Copy pathpython_analysis.yml
File metadata and controls
61 lines (57 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Python analysis
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- develop
- main
- release/**
- feature/**
- hotfix/**
push:
branches:
- develop
- main
- release/**
- feature/**
- hotfix/**
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
call-workflow-static-analysis:
name: Static analysis
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-static_analysis.yml@4a000ba323d8818b874c907dd7cfb3b29960cba4 # v4.1.0
permissions:
contents: read
pull-requests: read
with:
package-manager: 'poetry'
app-name: 'mirageoscience'
python-version: '3.14'
# Also verify the pre-commit hook via CI-tools; pre-commit.ci runs it separately.
call-workflow-pre-commit:
name: Pre-Commit
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-pre_commit.yml@4a000ba323d8818b874c907dd7cfb3b29960cba4 # v4.1.0
permissions:
contents: read
pull-requests: read
with:
app-name: 'mirageoscience'
python-version: '3.14'
call-workflow-pytest:
name: Pytest
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-pytest.yml@4a000ba323d8818b874c907dd7cfb3b29960cba4 # v4.1.0
permissions:
contents: read
pull-requests: read
with:
package-manager: 'poetry'
python-versions: '["3.12", "3.14"]'
os: '["ubuntu-latest", "windows-latest"]'
cache-number: 1
codecov-reference-python-version: '3.14'
codecov-reference-os: '["windows-latest"]'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}