|
11 | 11 | - '*.*' |
12 | 12 |
|
13 | 13 | jobs: |
14 | | - pre-checks: |
15 | | - uses: qctrl/reusable-workflows/.github/workflows/poetry-pre-checks.yaml@master |
16 | | - secrets: inherit |
17 | | - with: |
18 | | - check-internal-versions: true |
19 | | - housekeeping: false |
20 | | - |
| 14 | + check-dependencies: |
| 15 | + # Filter out Draft Pull Requests |
| 16 | + if: github.event.pull_request.draft == false |
| 17 | + runs-on: ubuntu-latest |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v4 |
| 20 | + - name: Ensure no development packages have been set |
| 21 | + run: | |
| 22 | + source <(curl -sL http://ci.q-ctrl.com) |
| 23 | + ./ci docker run qctrl/ci-images:python-3.11-ci /scripts/check-for-internal-versions.sh |
| 24 | + linting: |
| 25 | + # Filter out PRs originating from this repository (triggers on-push.yml instead) |
| 26 | + if: github.event.pull_request.head.repo.fork == true |
| 27 | + runs-on: ubuntu-latest |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@v4 |
| 30 | + - name: Install Python dependencies |
| 31 | + run: | |
| 32 | + source <(curl -sL http://ci.q-ctrl.com) |
| 33 | + ./ci docker run qctrl/ci-images:python-3.11-ci /scripts/install-python-dependencies.sh |
| 34 | + - name: Run Pre-Commit |
| 35 | + run: | |
| 36 | + ./ci docker run qctrl/ci-images:python-3.11-ci poetry run pre-commit run -- -a |
21 | 37 | pytest: |
22 | 38 | # Filter out PRs originating from this repository (triggers on-push.yml instead) |
23 | 39 | if: github.event.pull_request.head.repo.fork == true |
24 | | - uses: qctrl/reusable-workflows/.github/workflows/pytest.yaml@master |
25 | | - secrets: inherit |
26 | | - with: |
27 | | - python-versions: '["3.10", "3.11", "3.12", "3.13"]' |
28 | | - |
| 40 | + runs-on: ubuntu-latest |
| 41 | + strategy: |
| 42 | + matrix: |
| 43 | + python: ["3.9", "3.10", "3.11"] |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v4 |
| 46 | + - name: Install Python dependencies |
| 47 | + run: | |
| 48 | + source <(curl -sL http://ci.q-ctrl.com) |
| 49 | + ./ci docker run qctrl/ci-images:python-${{ matrix.python }}-ci /scripts/install-python-dependencies.sh |
| 50 | + - name: Run Pytest |
| 51 | + run: | |
| 52 | + ./ci docker run qctrl/ci-images:python-${{ matrix.python }}-ci /scripts/pytest.sh |
29 | 53 | sphinx_documentation: |
30 | 54 | # Filter out PRs originating from this repository (triggers on-push.yml instead) |
31 | 55 | if: github.event.pull_request.head.repo.fork == true |
|
0 commit comments