From 39e56fa4ed4e3f68ef184ef895cfc9e4b5115829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20N=C3=B8rgaard?= Date: Sat, 4 Jan 2025 23:31:43 +0000 Subject: [PATCH] update actions and modernize --- .github/workflows/coverage_lint_build.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/coverage_lint_build.yml b/.github/workflows/coverage_lint_build.yml index 2943ec5b..a1b2a24f 100644 --- a/.github/workflows/coverage_lint_build.yml +++ b/.github/workflows/coverage_lint_build.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.11", "3.12", "3.13"] + python-version: ["3.11", "3.x"] steps: - name: Checkout @@ -84,31 +84,30 @@ 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 ref: dev/3.0 - 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: "pip" - name: "Install Python deps @ ${{ matrix.python-version }}" - id: install-deps run: | pip install -Ur requirements.txt starlette uvicorn + - name: "Run Pyright @ ${{ matrix.python-version }}" - uses: jakebailey/pyright-action@v1 + uses: jakebailey/pyright-action@v2 with: - no-comments: ${{ matrix.python-version != '3.x' }} + annotate: ${{ matrix.python-version != '3.x' }} warnings: false - name: Lint with Ruff - if: ${{ always() && steps.install-deps.outcome == 'success' }} - uses: chartboost/ruff-action@v1 + uses: astral-sh/ruff-action@v3 upload_pypi: if: github.event_name == 'push' && github.ref_type == 'tag' @@ -130,4 +129,4 @@ jobs: find . -name '*.whl' -exec mv '{}' dist/ \; - uses: pypa/gh-action-pypi-publish@release/v1 - name: Publish to PyPI \ No newline at end of file + name: Publish to PyPI