diff --git a/.github/workflows/test.yml b/.github/workflows/ci.yml similarity index 60% rename from .github/workflows/test.yml rename to .github/workflows/ci.yml index 92a72e4..f5a33c5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,30 @@ on: workflow_dispatch: jobs: + typing: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ] + + name: Pyright - ${{ matrix.python-version }} + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + allow-prereleases: true + + - name: Run Pyright on ${{ matrix.python-version }} + uses: jakebailey/pyright-action@v2 + with: + python-version: ${{ matrix.python-version }} + test: runs-on: ${{ matrix.os }} strategy: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 21be209..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: lint - -on: - push: - paths-ignore: - - 'README.rst' - pull_request: - types: [ opened, synchronize ] - paths-ignore: - - 'README.rst' - workflow_dispatch: - -jobs: - typing: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ] - - name: Pyright - ${{ matrix.python-version }} - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - allow-prereleases: true - - - name: Run Pyright on ${{ matrix.python-version }} - uses: jakebailey/pyright-action@v2 - with: - python-version: ${{ matrix.python-version }} diff --git a/README.rst b/README.rst index fa1a0c7..78da9fe 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ deferred ======== -|License| |Pyright| |Ruff| |pre-commit| +|License| |Pyright| |Ruff| |pre-commit| .. |License| image:: https://img.shields.io/github/license/Sachaa-Thanasius/deferred.svg :target: https://opensource.org/licenses/MIT