From 56004c6cc01f49265f582c89c86cdf6c3ac12f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20N=C3=B8rgaard?= Date: Fri, 3 May 2024 21:13:14 +0100 Subject: [PATCH] update github actions --- .github/workflows/build.yaml | 10 +++++----- .github/workflows/coverage_and_lint.yaml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b146464..6129357 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -29,7 +29,7 @@ jobs: - name: "Load cached poetry installation @ ${{ matrix.python-version }}" id: cached-poetry - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.local key: poetry-0 @@ -52,7 +52,7 @@ jobs: - name: "Load cached venv @ ${{ matrix.python-version }}" id: cached-pip-wheels - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: .venv/ key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} @@ -85,7 +85,7 @@ jobs: poetry run sphinx-build -aETW --keep-going . build - name: "Upload artifacts @ ${{ matrix.python-version}}" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: distributions path: dist/* @@ -99,13 +99,13 @@ jobs: if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 submodules: true - name: Download Artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: distributions path: dist diff --git a/.github/workflows/coverage_and_lint.yaml b/.github/workflows/coverage_and_lint.yaml index 2d9f764..8bd460e 100644 --- a/.github/workflows/coverage_and_lint.yaml +++ b/.github/workflows/coverage_and_lint.yaml @@ -20,13 +20,13 @@ jobs: name: "Type Coverage and Linting @ ${{ matrix.python-version }}" steps: - name: "Checkout Repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: "Load cached poetry installation @ ${{ matrix.python-version }}" id: cached-poetry - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.local key: poetry-0 @@ -41,7 +41,7 @@ jobs: - name: "Setup Python @ ${{ matrix.python-version }}" id: setup-python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "${{ matrix.python-version }}" cache: "poetry" @@ -57,12 +57,12 @@ jobs: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH - name: "Run Pyright @ ${{ matrix.python-version }}" - uses: jakebailey/pyright-action@v1 + uses: jakebailey/pyright-action@v2 with: warnings: false verify-types: "hondana" ignore-external: true - no-comments: ${{ matrix.python-version != '3.x' }} + annotate: ${{ matrix.python-version != '3.x' && 'all' || 'none' }} - name: Lint if: ${{ always() && steps.install-deps.outcome == 'success' }}