Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 12 additions & 25 deletions .github/workflows/on-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,30 @@ on:
jobs:
check-dependencies:
# Filter out Draft Pull Requests
if: github.event.pull_request.draft == false
# if: github.event.pull_request.draft == false #TODO: Reenable this once testing is completed
runs-on: ubuntu-latest
container: qctrl/ci-images:python-3.11-ci
steps:
- uses: actions/checkout@v4
- name: Ensure no development packages have been set
run: |
source <(curl -sL http://ci.q-ctrl.com)
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/check-for-internal-versions.sh
- uses: qctrl/reusable-workflows/.github/actions/common/check-internal-versions@add_check_dependencies_on_internal_versions #TODO: Change to master @version

linting:
# Filter out PRs originating from this repository (triggers on-push.yml instead)
if: github.event.pull_request.head.repo.fork == true
runs-on: ubuntu-latest
container: qctrl/ci-images:python-3.11-ci
steps:
- uses: actions/checkout@v4
- name: Install Python dependencies
run: |
source <(curl -sL http://ci.q-ctrl.com)
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/install-python-dependencies.sh
- name: Run Pre-Commit
run: |
./ci docker run qctrl/ci-images:python-3.11-ci poetry run pre-commit run -- -a
- uses: qctrl/reusable-workflows/.github/actions/python/linting@master

pytest:
# Filter out PRs originating from this repository (triggers on-push.yml instead)
if: github.event.pull_request.head.repo.fork == true
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Install Python dependencies
run: |
source <(curl -sL http://ci.q-ctrl.com)
./ci docker run qctrl/ci-images:python-${{ matrix.python }}-ci /scripts/install-python-dependencies.sh
- name: Run Pytest
run: |
./ci docker run qctrl/ci-images:python-${{ matrix.python }}-ci /scripts/pytest.sh
uses: qctrl/reusable-workflows/.github/workflows/pytest.yaml@master
secrets: inherit
with:
python-versions: ["3.9", "3.10", "3.11"]

sphinx_documentation:
# Filter out PRs originating from this repository (triggers on-push.yml instead)
if: github.event.pull_request.head.repo.fork == true
Expand Down