From 08a87dc9d70691d7d6468f3c810b902021bd9ee9 Mon Sep 17 00:00:00 2001 From: Leonard Crestez Date: Fri, 6 Dec 2024 13:03:13 +0200 Subject: [PATCH 1/2] github workflows: update all actions --- .github/workflows/main.yml | 16 ++++++++-------- .github/workflows/pages.yml | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8d769ea..e4fe09e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,10 +8,10 @@ jobs: matrix: python-version: ["3.7", "3.10"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - - uses: actions/setup-python@v3 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Print python version @@ -24,15 +24,15 @@ jobs: run: coverage-badge -o htmlcov/badge.svg - name: Upload htmlcov if: ${{ matrix.python-version == '3.10' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: htmlcov path: htmlcov mypy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 - name: Install dependencies run: pip install -e .[test,hack] - name: Run mypy @@ -40,14 +40,14 @@ jobs: docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 - name: Install dependencies for sphinx run: pip install -e .[docs] - name: Run sphinx run: sphinx-build sphinx-source sphinx-output -W --keep-going - name: Upload docs - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docs path: sphinx-output diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index e03f688..baabbab 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -24,9 +24,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v5 - uses: dawidd6/action-download-artifact@v7 with: workflow: main.yml @@ -43,4 +43,4 @@ jobs: path: pages - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 From c8174235d13b6117e17825971011b6f627d5c1b6 Mon Sep 17 00:00:00 2001 From: Leonard Crestez Date: Fri, 6 Dec 2024 13:03:47 +0200 Subject: [PATCH 2/2] github workflows: fix shellcheck issues --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e4fe09e..8ac08dc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: - name: Print python version run: python -VV - name: Install dependencies - run: pip install -e .[test] + run: pip install -e '.[test]' - name: Test with pytest run: pytest --cov --cov-report=html - name: Generate coverage badge @@ -34,7 +34,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - name: Install dependencies - run: pip install -e .[test,hack] + run: pip install -e '.[test,hack]' - name: Run mypy run: mypy docs: