Skip to content

Commit

Permalink
CI: Update upstream GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
F30 committed May 25, 2024
1 parent 9f14cf9 commit 3ceeb08
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
container: python:3.11-bookworm
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: pip install -e .[dev]
- run: make lint

Expand All @@ -23,7 +23,7 @@ jobs:
# Required for "EnricoMi/publish-unit-test-result-action"
checks: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup dependencies
run: |
pip install tox
Expand All @@ -41,14 +41,14 @@ jobs:
files: .tox/py*/log/results.xml
comment_mode: "off"
- name: Archive unit test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: tox-test-results
path: .tox/py*/log/results.xml
if-no-files-found: error
- name: Archive code coverage results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: tox-code-coverage-report
Expand All @@ -60,15 +60,15 @@ jobs:
runs-on: ubuntu-latest
container: debian:bookworm
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: apt-get --yes update
- run: apt-get --yes install --no-install-recommends devscripts dpkg-dev equivs
# Add `--yes` to mk-build-deps' default options for apt-get
- run: mk-build-deps --install --tool 'apt-get --yes -o Debug::pkgProblemResolver=yes --no-install-recommends' debian/control
- run: dpkg-buildpackage --unsigned-changes --unsigned-buildinfo
- run: mv ../ctf-gameserver_*.deb .
- name: Store Debian package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: deb-package
path: ctf-gameserver_*.deb
Expand All @@ -81,8 +81,8 @@ jobs:
container: debian:bookworm
needs: build_deb_package
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: deb-package
- run: apt-get --yes update
Expand All @@ -92,14 +92,14 @@ jobs:
- run: make build
- run: pytest-3 --junitxml=results.xml --cov=src --cov-report=term --cov-report=html tests
- name: Archive unit test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: debian-test-results
path: results.xml
if-no-files-found: error
- name: Archive code coverage results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: debian-code-coverage-report
Expand Down

0 comments on commit 3ceeb08

Please sign in to comment.