Skip to content

Commit

Permalink
update github actions (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-melf authored Jan 2, 2024
1 parent 4e62011 commit a18287d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,13 @@ jobs:
./.github/workflows/build-docs
- name: Upload artefact
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pytket_docs
path: pytket/docs/build/html/
- name: Upload pytket coverage artefact
if: github.event_name == 'pull_request' || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pytket_test_coverage
path: pytket/tests/htmlcov
Expand Down Expand Up @@ -532,7 +532,7 @@ jobs:
with:
ref: gh-pages
- name: Download artefact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: pytket_test_coverage
path: htmlcov/
Expand All @@ -558,7 +558,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Download artefact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: pytket_test_coverage
path: pytket-test-coverage/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
gcovr --print-summary --html --html-details -r ./tket --exclude-lines-by-pattern '.*\bTKET_ASSERT\(.*\);' --object-directory ${PWD}/build/tket/build/Debug/CMakeFiles/tket.dir/src -o test-coverage/index.html --decisions > test-coverage/summary.txt
cat test-coverage/summary.txt
- name: Upload artefact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test_coverage
path: test-coverage/
Expand All @@ -95,7 +95,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Download artefact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: test_coverage
path: test-coverage/
Expand All @@ -121,7 +121,7 @@ jobs:
with:
ref: gh-pages
- name: Download artefact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: test_coverage
path: test-coverage/
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
with:
ref: gh-pages
- name: Download artefact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: test_coverage
path: test-coverage/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Build Doxygen docs
run: cd tket && doxygen
- name: Upload artefact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: tket_docs
path: tket/doc/html/
Expand All @@ -30,7 +30,7 @@ jobs:
with:
ref: gh-pages
- name: Download artefact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: tket_docs
path: api/
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
docker exec -e PY_TAG="cp3${{ matrix.python3-version }}-cp3${{ matrix.python3-version }}" -e CONAN_PROFILE=linux-x86_64-gcc10-libstdc++ linux_build /bin/bash -c "/tket/.github/workflows/linuxbuildwheel"
mkdir wheelhouse
docker cp linux_build:/tket/pytket/audited/. wheelhouse/
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Linux_3.${{ matrix.python3-version }}_wheel
path: wheelhouse/
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
run: |
export DOCKER_HOST=unix://${HOME}/.docker/run/docker.sock
docker rm --force -v linux_build
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Linux_aarch64_3.${{ matrix.python3-version }}_wheel
path: wheelhouse/
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
pip install -U pip build delocate
python -m build
delocate-wheel -v -w "$GITHUB_WORKSPACE/wheelhouse/" "dist/pytket-"*".whl"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: MacOS_${{ matrix.python-version }}_wheel
path: wheelhouse/
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
python${{ matrix.python-version }} -m pip install -U pip build delocate
python${{ matrix.python-version }} -m build
delocate-wheel -v -w "$GITHUB_WORKSPACE/wheelhouse/" "dist/pytket-"*".whl"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: MacOS_M1_${{ matrix.python-version }}_wheel
path: wheelhouse/
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:
cd pytket
python -m pip install -U pip build
python -m build --outdir "${{ github.workspace }}/wheelhouse"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Windows_${{ matrix.python-version }}_wheel
path: wheelhouse/
Expand All @@ -212,7 +212,7 @@ jobs:
with:
python-version: "3.${{ matrix.python3-version }}"
- name: Download wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: Linux_3.${{ matrix.python3-version }}_wheel
path: wheelhouse/
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
with:
path: tket
- name: Download wheel
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: Linux_aarch64_3.${{ matrix.python3-version }}_wheel
path: wheelhouse/
Expand Down Expand Up @@ -277,7 +277,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Download wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: MacOS_${{ matrix.python-version }}_wheel
path: wheelhouse/
Expand Down Expand Up @@ -310,7 +310,7 @@ jobs:
if: matrix.python-version == '3.9'
run: brew install [email protected]
- name: Download wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: MacOS_M1_${{ matrix.python-version }}_wheel
path: wheelhouse/
Expand Down Expand Up @@ -339,7 +339,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Download wheel
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: Windows_${{ matrix.python-version }}_wheel
path: wheelhouse/
Expand All @@ -363,7 +363,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Download all wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: wheelhouse
- name: Put them all in the dist folder
Expand All @@ -389,7 +389,7 @@ jobs:
with:
python-version: '3.10'
- name: Download wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: Linux_3.10_wheel
path: wheelhouse/
Expand All @@ -403,7 +403,7 @@ jobs:
timeout-minutes: 20
run: ./.github/workflows/build-docs
- name: Upload artefact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pytket_docs
path: pytket/docs/build/html/
Expand All @@ -419,7 +419,7 @@ jobs:
with:
ref: gh-pages
- name: Download artefact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: pytket_docs
path: api/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
gcovr --print-summary --html --html-details -r ${GITHUB_WORKSPACE}/libs/${{ matrix.lib }} --exclude-lines-by-pattern '.*\bTKET_ASSERT\(.*\);' --object-directory ${GITHUB_WORKSPACE}/build/${{ matrix.lib }}/build/Debug/CMakeFiles/${{ matrix.lib }}.dir/src -o ${{ matrix.lib }}-coverage/index.html --decisions > ${{ matrix.lib }}-coverage/summary.txt
cat ${{ matrix.lib }}-coverage/summary.txt
- name: upload artefact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.lib }}_coverage
path: ${{ matrix.lib }}-coverage/
Expand All @@ -157,7 +157,7 @@ jobs:
with:
ref: gh-pages
- name: download artefact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ matrix.lib }}_coverage
path: ${{ matrix.lib }}-coverage/
Expand Down

0 comments on commit a18287d

Please sign in to comment.