26
26
name : pre-commit
27
27
runs-on : ubuntu-latest
28
28
steps :
29
- - uses : actions/checkout@v3
30
- - uses : actions/setup-python@v4
29
+ - uses : actions/checkout@v4
30
+ - uses : actions/setup-python@v5
31
31
-
uses :
pre-commit/[email protected]
32
32
with :
33
33
extra_args : --hook-stage manual --all-files
@@ -45,13 +45,13 @@ jobs:
45
45
name : test coffea (${{ matrix.os }}) - python ${{ matrix.python-version }}, JDK${{ matrix.java-version }}
46
46
47
47
steps :
48
- - uses : actions/checkout@v3
48
+ - uses : actions/checkout@v4
49
49
- name : Set up Python ${{ matrix.python-version }}
50
- uses : actions/setup-python@v4
50
+ uses : actions/setup-python@v5
51
51
with :
52
52
python-version : ${{ matrix.python-version }}
53
53
- name : Set up JDK ${{ matrix.java-distribution }}/${{ matrix.java-version }}
54
- uses : actions/setup-java@v3
54
+ uses : actions/setup-java@v4
55
55
with :
56
56
java-version : ${{ matrix.java-version }}
57
57
distribution : ${{ matrix.java-distribution }}
67
67
# mltool installs
68
68
python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
69
69
python -m pip install xgboost
70
- python -m pip install tritonclient[grpc,http]
70
+ python -m pip install ' tritonclient[grpc,http]!=2.41.0'
71
71
# install checked out coffea
72
- python -m pip install -q -e '.[dev,parsl,dask,spark]'
72
+ python -m pip install -q -e '.[dev,parsl,dask,spark]' --upgrade --upgrade-strategy eager
73
73
python -m pip list
74
74
java -version
75
75
- name : Install dependencies (MacOS)
80
80
python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
81
81
python -m pip install xgboost
82
82
# install checked out coffea
83
- python -m pip install -q -e '.[dev,dask,spark]'
83
+ python -m pip install -q -e '.[dev,dask,spark]' --upgrade --upgrade-strategy eager
84
84
python -m pip list
85
85
java -version
86
86
- name : Install dependencies (Windows)
@@ -91,18 +91,18 @@ jobs:
91
91
python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
92
92
python -m pip install xgboost
93
93
# install checked out coffea
94
- python -m pip install -q -e '.[dev,dask]'
94
+ python -m pip install -q -e '.[dev,dask]' --upgrade --upgrade-strategy eager
95
95
python -m pip list
96
96
java -version
97
97
98
98
- name : Start triton server with example model
99
99
if : matrix.os == 'ubuntu-latest'
100
100
run : |
101
- docker run -d --rm -p 8000:8000 -p 8001:8001 -p 8002:8002 -v ${{ github.workspace }}/tests/samples/triton_models_test:/models nvcr.io/nvidia/tritonserver:23.04-py3 tritonserver --model-repository=/models
101
+ docker run -d --rm -p 8000:8000 -p 8001:8001 -p 8002:8002 -v ${{ github.workspace }}/tests/samples/triton_models_test:/models nvcr.io/nvidia/tritonserver:23.04-pyt-python- py3 tritonserver --model-repository=/models
102
102
103
103
- name : Test with pytest
104
104
run : |
105
- pytest --cov-report=xml --cov=coffea tests
105
+ pytest --cov-report=xml --cov=coffea --deselect=test_taskvine
106
106
- name : Upload codecov
107
107
if : matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11
108
108
uses : codecov/codecov-action@v3
@@ -119,48 +119,48 @@ jobs:
119
119
touch build/html/.nojekyll
120
120
- name : Deploy documentation
121
121
if : github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11
122
- uses : crazy-max/ghaction-github-pages@v3
122
+ uses : crazy-max/ghaction-github-pages@v4
123
123
with :
124
124
target_branch : gh-pages
125
125
build_dir : docs/build/html
126
126
env :
127
127
GH_PAT : ${{ secrets.GITHUB_OAUTH }}
128
128
129
- testwq :
129
+ test-vine :
130
130
runs-on : ubuntu-latest
131
131
needs : pre-commit
132
132
strategy :
133
133
matrix :
134
134
python-version : ["3.11"]
135
- name : test coffea-workqueue
136
-
135
+ name : test coffea-taskvine
137
136
steps :
138
- - uses : actions/checkout@v3
137
+ - uses : actions/checkout@v4
139
138
- name : Set up Conda
140
- uses : conda-incubator/setup-miniconda@v2
139
+ uses : conda-incubator/setup-miniconda@v3
141
140
env :
142
141
ACTIONS_ALLOW_UNSECURE_COMMANDS : true
143
142
with :
144
143
auto-update-conda : true
145
144
python-version : ${{ matrix.python-version }}
146
145
channels : conda-forge
147
- - name : Test work_queue
146
+ - name : Construct conda environment
148
147
shell : bash -l {0}
149
148
run : |
150
- conda create --yes --name coffea-env -c conda-forge python=${{ matrix.python-version }} ndcctools dill conda-pack conda
151
- conda activate coffea-env
152
- python -m pip install --ignore-installed .
153
- cd tests
154
- conda-pack --output coffea-env.tar.gz
155
- python wq.py coffea-env.tar.gz
149
+ conda create --yes --prefix ./coffea-conda-test-env -c conda-forge python=${{ matrix.python-version }} ndcctools
150
+ conda activate ./coffea-conda-test-env
151
+ python -m pip install .
152
+ python -m pip install pytest
153
+ - name : Test with pytest
154
+ run : |
155
+ conda run --prefix ./coffea-conda-test-env pytest tests/test_taskvine.py
156
156
157
157
# testskyhookjob:
158
158
# runs-on: ubuntu-latest
159
159
# needs: pre-commit
160
160
# name: test coffea-skyhook-job
161
161
#
162
162
# steps:
163
- # - uses: actions/checkout@3.2.0
163
+ # - uses: actions/checkout@3
164
164
# - name: Test Coffea Skyhook Bindings
165
165
# shell: bash -l {0}
166
166
# run: |
@@ -178,30 +178,30 @@ jobs:
178
178
release :
179
179
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
180
180
runs-on : ubuntu-latest
181
- needs : [test, testwq ]
181
+ needs : [test, test-vine ]
182
182
strategy :
183
183
matrix :
184
184
python-version : ["3.11"]
185
185
name : deploy release
186
186
187
187
steps :
188
- - uses : actions/checkout@v3
188
+ - uses : actions/checkout@v4
189
189
- name : Set up Python ${{ matrix.python-version }}
190
- uses : actions/setup-python@v4
190
+ uses : actions/setup-python@v5
191
191
with :
192
192
python-version : ${{ matrix.python-version }}
193
193
- name : Build package for PyPI
194
194
run : |
195
195
python -m pip install pip hatch --upgrade
196
196
python -m hatch build -t sdist -t wheel
197
197
- name : Publish package to PyPI
198
-
198
+
199
199
with :
200
200
user : __token__
201
201
password : ${{ secrets.PYPI_TOKEN }}
202
202
203
203
pass :
204
- needs : [test, testwq ]
204
+ needs : [test, test-vine ]
205
205
runs-on : ubuntu-latest
206
206
steps :
207
207
- run : echo "All jobs passed"
0 commit comments