Skip to content

Commit

Permalink
Update GitHub actions to use modern versions (gwastro#4867)
Browse files Browse the repository at this point in the history
* Depndabot

* Try to solve new issue due to upload-artifact@v2 deprecation

* Mimic what has been changed for PyPMC

* Still failing, try this…

* Include a fix for Node16 deprecation as well

* Fix one more error

* Also update setup-python to v5

* Remove some debugging stuff

---------

Co-authored-by: Tito Dal Canton <[email protected]>
  • Loading branch information
spxiwh and titodalcanton authored Sep 12, 2024
1 parent 5e23aa7 commit c8a9105
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 30 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/basic-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
python-version: ['3.9', '3.10', '3.11', '3.12']
test-type: [unittest, search, docs]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: installing system packages
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
tox -e py-inference
- name: store documentation page
if: matrix.test-type == 'docs' && matrix.python-version == '3.12'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: documentation-page
path: _gh-pages
Expand All @@ -61,7 +61,7 @@ jobs:
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
steps:
- name: retrieve built documentation
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4.1.7
with:
name: documentation-page
- name: debug
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_venv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v1
-
name: "Set up Python"
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
-
Expand Down
26 changes: 15 additions & 11 deletions .github/workflows/distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
os: [ubuntu-20.04, macos-12]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install cibuildwheel
Expand All @@ -29,29 +29,33 @@ jobs:
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-*
CIBW_SKIP: "*musllinux*"
CIBW_ARCHS_MACOS: x86_64 arm64
- uses: actions/upload-artifact@v2
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.os }}
path: ./wheelhouse/*.whl
deploy_pypi:
name: Build and publish Python 🐍 distributions 📦 to PyPI
name: Package and publish to PyPI
runs-on: ubuntu-20.04
needs: build_wheels
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4.1.7
with:
path: ./
- name: build pycbc for pypi
pattern: wheel-*
merge-multiple: true
path: dist/
- name: Build source distribution
run: |
python setup.py sdist
mv artifact/* dist/
- name: Publish distribution 📦 to PyPI
ls -lh dist
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v1
-
name: "Set up Python"
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
-
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/inference-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install condor
Expand Down Expand Up @@ -48,12 +48,12 @@ jobs:
find submitdir/work/ -type f -name '*.tar.gz' -delete
- name: store log files
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: logs
path: gw_output/submitdir/work
- name: store result page
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: results
path: html
2 changes: 1 addition & 1 deletion .github/workflows/mac-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/search-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install condor
Expand Down Expand Up @@ -55,12 +55,12 @@ jobs:
find submitdir/work/ -type f -name '*.tar.gz' -delete
- name: store log files
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: logs
path: output/submitdir/work
- name: store result page
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: results
path: html
4 changes: 2 additions & 2 deletions .github/workflows/tmpltbank-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install condor
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
find submitdir/work/ -type f -name '*.tar.gz' -delete
- name: store log files
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: logs
path: output/submitdir/work
4 changes: 2 additions & 2 deletions .github/workflows/tut-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
os: [ubuntu-20.04]
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: installing packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/workflow-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install condor
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
find submitdir/work/ -type f -name '*.tar.gz' -delete
- name: store log files
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: logs-${{matrix.test-type}}
path: examples/workflow/generic/${{matrix.test-type}}/submitdir/work

0 comments on commit c8a9105

Please sign in to comment.