diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0006d6f..ba3cf68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,14 +10,29 @@ on: workflow_dispatch: jobs: - ci: - name: Python ${{ matrix.python-version }} + typing: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + - name: Install package and dependencies + run: | + python -m pip install --upgrade pip setuptools build + python -m pip install .[lint] + - name: Check types with mypy + run: | + mypy + + test: runs-on: ubuntu-latest strategy: matrix: python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] fail-fast: false - steps: - name: Checkout uses: actions/checkout@v4 @@ -39,6 +54,16 @@ jobs: uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} + + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' - name: Check package build run: | python -m build