26
26
NOXSESSION : ${{ matrix.session }}
27
27
FORCE_COLOR : " 1"
28
28
PRE_COMMIT_COLOR : " always"
29
+ PIP_CONSTRAINTS : ${{ github.workspace }}/.github/workflows/constraints.txt
29
30
30
31
steps :
31
32
- name : Check out the repository
38
39
39
40
- name : Upgrade pip
40
41
run : |
41
- pip install --constraint=.github/workflows/constraints.txt pip
42
+ pip install --constraint=$PIP_CONSTRAINTS pip
42
43
pip --version
43
44
44
45
- name : Upgrade pip in virtual environments
@@ -52,13 +53,13 @@ jobs:
52
53
53
54
- name : Install Poetry
54
55
run : |
55
- pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
56
+ pipx install --pip-args=--constraint=$PIP_CONSTRAINTS poetry
56
57
poetry --version
57
58
58
59
- name : Install Nox
59
60
run : |2
60
- pipx install --pip-args=--constraint=.github/workflows/constraints.txt nox
61
- pipx inject --pip-args=--constraint=.github/workflows/constraints.txt nox nox-poetry
61
+ pipx install --pip-args=--constraint=$PIP_CONSTRAINTS nox
62
+ pipx inject --pip-args=--constraint=$PIP_CONSTRAINTS nox nox-poetry
62
63
nox --version
63
64
64
65
- name : Compute pre-commit cache key
@@ -106,6 +107,8 @@ jobs:
106
107
coverage :
107
108
runs-on : ubuntu-latest
108
109
needs : tests
110
+ env :
111
+ PIP_CONSTRAINTS : ${{ github.workspace }}/.github/workflows/constraints.txt
109
112
steps :
110
113
- name : Check out the repository
111
114
uses : actions/checkout@v3
@@ -117,18 +120,18 @@ jobs:
117
120
118
121
- name : Upgrade pip
119
122
run : |
120
- pip install --constraint=.github/workflows/constraints.txt pip
123
+ pip install --constraint=$PIP_CONSTRAINTS pip
121
124
pip --version
122
125
123
126
- name : Install Poetry
124
127
run : |
125
- pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
128
+ pipx install --pip-args=--constraint=$PIP_CONSTRAINTS poetry
126
129
poetry --version
127
130
128
131
- name : Install Nox
129
132
run : |
130
- pipx install --pip-args=--constraint=.github/workflows/constraints.txt nox
131
- pipx inject --pip-args=--constraint=.github/workflows/constraints.txt nox nox-poetry
133
+ pipx install --pip-args=--constraint=$PIP_CONSTRAINTS nox
134
+ pipx inject --pip-args=--constraint=$PIP_CONSTRAINTS nox nox-poetry
132
135
nox --version
133
136
134
137
- name : Download coverage data
0 commit comments