-
Notifications
You must be signed in to change notification settings - Fork 75
89 lines (81 loc) · 2.38 KB
/
push.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: OpenFisca-Core / Pull request review
on:
pull_request:
types: [assigned, opened, reopened, synchronize, ready_for_review]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
setup-pip:
strategy:
fail-fast: true
matrix:
os: [ubuntu-22.04, windows-2019]
numpy: [1.26.4, 1.24.2]
# Patch version must be specified to avoid any cache confusion, since
# the cache key depends on the full Python version. If left unspecified,
# different patch versions could be allocated between jobs, and any
# such difference would lead to a cache not found error.
python: [3.11.9, 3.9.13]
include:
- os: ubuntu-22.04
activate_command: source venv/bin/activate
- os: windows-2019
activate_command: .\venv\Scripts\activate
uses: ./.github/workflows/_before-pip.yaml
with:
os: ${{ matrix.os }}
numpy: ${{ matrix.numpy }}
python: ${{ matrix.python }}
activate_command: ${{ matrix.activate_command }}
setup-conda:
uses: ./.github/workflows/_before-conda.yaml
with:
os: ubuntu-22.04
numpy: 1.26.4
python: 3.10.6
test-pip:
needs: [setup-pip]
strategy:
fail-fast: true
matrix:
os: [ubuntu-22.04, windows-2019]
numpy: [1.26.4, 1.24.2]
python: [3.11.9, 3.9.13]
include:
- os: ubuntu-22.04
activate_command: source venv/bin/activate
- os: windows-2019
activate_command: .\venv\Scripts\activate
uses: ./.github/workflows/_test-pip.yaml
with:
os: ${{ matrix.os }}
numpy: ${{ matrix.numpy }}
python: ${{ matrix.python }}
activate_command: ${{ matrix.activate_command }}
test-conda:
uses: ./.github/workflows/_test-conda.yaml
needs: [setup-conda]
with:
os: ubuntu-22.04
numpy: 1.26.4
python: 3.10.6
lint-pip:
needs: [setup-pip]
strategy:
fail-fast: true
matrix:
numpy: [1.24.2]
python: [3.11.9, 3.9.13]
uses: ./.github/workflows/_lint-pip.yaml
with:
os: ubuntu-22.04
numpy: ${{ matrix.numpy }}
python: ${{ matrix.python }}
activate_command: source venv/bin/activate
check-version:
needs: [test-pip, test-conda, lint-pip]
uses: ./.github/workflows/_version.yaml
with:
os: ubuntu-22.04
python: 3.9.13