diff --git a/.github/workflows/maintests.yml b/.github/workflows/maintests.yml index a5fc0af9..c2609bea 100644 --- a/.github/workflows/maintests.yml +++ b/.github/workflows/maintests.yml @@ -17,11 +17,18 @@ on: - 'requirements.dev.txt' - 'requirements.docs.txt' jobs: - build: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run pre-commit + uses: pre-commit/action@v3.0.0 + + unit-tests: runs-on: ubuntu-latest strategy: matrix: - python: ["3.10"] + python: ["3.10", "3.11"] steps: - uses: actions/checkout@v3 @@ -33,7 +40,5 @@ jobs: run: | python -m pip install --upgrade pip pip install --upgrade -r requirements.dev.txt - - name: Run pre-commit - uses: pre-commit/action@v3.0.0 - name: Run unit tests run: tox -e tests-no-api-calls diff --git a/.github/workflows/prtests.yml b/.github/workflows/prtests.yml index 340db060..5ffd64f1 100644 --- a/.github/workflows/prtests.yml +++ b/.github/workflows/prtests.yml @@ -20,11 +20,18 @@ on: - 'requirements.dev.txt' - 'requirements.docs.txt' jobs: - build: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run pre-commit + uses: pre-commit/action@v3.0.0 + + unit-tests: runs-on: ubuntu-latest strategy: matrix: - python: ["3.10"] + python: ["3.10", "3.11"] steps: - uses: actions/checkout@v3 @@ -38,7 +45,5 @@ jobs: run: | python -m pip install --upgrade pip pip install --upgrade -r requirements.dev.txt - - name: Run pre-commit - uses: pre-commit/action@v3.0.0 - name: Run unit tests run: tox -e tests-no-api-calls