From bde63fd5a92d0cd92ad7ea9e3f86fd4d772e7171 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Wed, 19 Jun 2024 09:11:34 +0200 Subject: [PATCH 1/2] CI: update Actions, Python 3.10 as default --- .github/workflows/doc.yml | 6 +++--- .github/workflows/publish.yml | 10 +++++----- .github/workflows/test.yml | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 5bcf7d4..6f671c0 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -13,13 +13,13 @@ jobs: strategy: matrix: os: [ ubuntu-latest ] - python-version: [ '3.8' ] + python-version: [ '3.10' ] 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 }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 242819f..117b900 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,13 +16,13 @@ jobs: group: ${{ github.workflow }}-${{ github.ref }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 2 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '3.10' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -41,7 +41,7 @@ jobs: run: | python -m sphinx docs/ docs/_build/ -b html - name: Deploy documentation to Github pages - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./docs/_build @@ -61,7 +61,7 @@ jobs: } >> "$GITHUB_OUTPUT" - name: Create release on Github id: create_release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index be9d0b8..508619f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,10 +16,10 @@ jobs: python-version: [ '3.8', '3.9', '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 }} @@ -35,7 +35,7 @@ jobs: python -m pytest - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.xml From 0c74524661f5c27e83432288cdf9fe98cc10b217 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Wed, 19 Jun 2024 09:16:29 +0200 Subject: [PATCH 2/2] Update remaining Actions --- .github/workflows/linter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 1f5613e..9fa4a65 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -12,10 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.10 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10'