Skip to content

Commit 6abc339

Browse files
authored
revert: Add docker run command due to unsupported workflows (#320)
1 parent ce8661d commit 6abc339

File tree

1 file changed

+36
-12
lines changed

1 file changed

+36
-12
lines changed

.github/workflows/on-pull-request.yaml

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,45 @@ on:
1111
- '*.*'
1212

1313
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
2137
pytest:
2238
# Filter out PRs originating from this repository (triggers on-push.yml instead)
2339
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
2953
sphinx_documentation:
3054
# Filter out PRs originating from this repository (triggers on-push.yml instead)
3155
if: github.event.pull_request.head.repo.fork == true

0 commit comments

Comments
 (0)