@@ -49,22 +49,22 @@ jobs:
4949 run : |
5050 export PHARUS_VERSION=$(cat pharus/version.py | grep -oP '\d+\.\d+\.\d+')
5151 export HOST_UID=$(id -u)
52- docker- compose -f docker-compose-build.yaml up --exit-code-from pharus --build
52+ docker compose -f docker-compose-build.yaml up --exit-code-from pharus --build
5353 IMAGE=$(docker images --filter "reference=datajoint/pharus*" \
5454 --format "{{.Repository}}")
5555 TAG=$(docker images --filter "reference=datajoint/pharus*" --format "{{.Tag}}")
5656 docker save "${IMAGE}:${TAG}" | \
5757 gzip > "image-pharus-${PHARUS_VERSION}-py${PY_VER}-${DISTRO}.tar.gz"
5858 echo "PHARUS_VERSION=${PHARUS_VERSION}" >> $GITHUB_ENV
5959 - name : Add image artifact
60- uses : actions/upload-artifact@v2
60+ uses : actions/upload-artifact@v4
6161 with :
6262 name : image-pharus-${{env.PHARUS_VERSION}}-py${{matrix.py_ver}}-${{matrix.distro}}
6363 path : " image-pharus-${{env.PHARUS_VERSION}}-py${{matrix.py_ver}}-\
6464 ${{matrix.distro}}.tar.gz"
6565 retention-days : 1
6666 - name : Add pip artifacts
67- uses : actions/upload-artifact@v2
67+ uses : actions/upload-artifact@v4
6868 with :
6969 name : pip-pharus-${{env.PHARUS_VERSION}}-py${{matrix.py_ver}}
7070 path : dist
@@ -95,14 +95,14 @@ jobs:
9595 PHARUS_VERSION=$(cat pharus/version.py | grep -oP '\d+\.\d+\.\d+')
9696 echo "PHARUS_VERSION=${PHARUS_VERSION}" >> $GITHUB_ENV
9797 - name : Fetch image artifact
98- uses : actions/download-artifact@v2
98+ uses : actions/download-artifact@v4
9999 with :
100100 name : image-pharus-${{env.PHARUS_VERSION}}-py${{matrix.py_ver}}-${{matrix.distro}}
101101 - name : Run primary tests
102102 run : |
103103 export HOST_UID=$(id -u)
104104 docker load < "image-pharus-${PHARUS_VERSION}-py${PY_VER}-${DISTRO}.tar.gz"
105- docker- compose -f docker-compose-test.yaml up --exit-code-from pharus
105+ docker compose -f docker-compose-test.yaml up --exit-code-from pharus
106106 publish-release :
107107 if : |
108108 github.event_name == 'push' &&
@@ -143,24 +143,24 @@ jobs:
143143 prerelease : ${{steps.changelog_reader.outputs.status == 'prereleased'}}
144144 draft : ${{steps.changelog_reader.outputs.status == 'unreleased'}}
145145 - name : Fetch image artifact
146- uses : actions/download-artifact@v2
146+ uses : actions/download-artifact@v4
147147 with :
148148 name : image-pharus-${{env.PHARUS_VERSION}}-py3.8-alpine
149149 - name : Fetch 3.8 pip artifacts
150- uses : actions/download-artifact@v2
150+ uses : actions/download-artifact@v4
151151 with :
152152 name : pip-pharus-${{env.PHARUS_VERSION}}-py3.8
153153 path : dist
154154 - name : Fetch 3.9 pip artifacts
155- uses : actions/download-artifact@v2
155+ uses : actions/download-artifact@v4
156156 with :
157157 name : pip-pharus-${{env.PHARUS_VERSION}}-py3.8
158158 path : dist
159159 - name : Publish pip release
160160 run : |
161161 export HOST_UID=$(id -u)
162162 docker load < "image-pharus-${PHARUS_VERSION}-py3.8-alpine.tar.gz"
163- docker- compose -f docker-compose-build.yaml run \
163+ docker compose -f docker-compose-build.yaml run \
164164 -e TWINE_USERNAME=${TWINE_USERNAME} -e TWINE_PASSWORD=${TWINE_PASSWORD} pharus \
165165 sh -lc "pip install twine && python -m twine upload dist/*"
166166 - name : Determine pip artifact paths
@@ -243,7 +243,7 @@ jobs:
243243 PHARUS_VERSION=$(cat pharus/version.py | grep -oP '\d+\.\d+\.\d+')
244244 echo "PHARUS_VERSION=${PHARUS_VERSION}" >> $GITHUB_ENV
245245 - name : Fetch image artifact
246- uses : actions/download-artifact@v2
246+ uses : actions/download-artifact@v4
247247 with :
248248 name : image-pharus-${{env.PHARUS_VERSION}}-py${{matrix.py_ver}}-${{matrix.distro}}
249249 - name : Login to DockerHub
@@ -287,5 +287,5 @@ jobs:
287287 )
288288 needs : publish-release
289289 uses : datajoint/.github/.github/workflows/mkdocs_release.yaml@main
290- permissions :
290+ permissions :
291291 contents : write
0 commit comments