-
Notifications
You must be signed in to change notification settings - Fork 33
65 lines (63 loc) · 2.36 KB
/
on-pull-request.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#################### Maintained by repositories-manager - do not edit directly ####################
name: Pull request workflow
on:
pull_request:
# Defaults are opened, reopened, synchronize
types: [opened, ready_for_review, reopened, synchronize]
branches:
- 'master'
tags-ignore:
- '*.*'
jobs:
check-dependencies:
# Filter out Draft Pull Requests
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
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
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
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
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
sphinx_documentation:
# 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
steps:
- uses: actions/checkout@v4
- name: Build Sphinx Image
run: |
source <(curl -sL http://ci.q-ctrl.com)
./ci docker build \
-f ./docs/Dockerfile \
--suffix -docs
#################### Maintained by repositories-manager - do not edit directly ####################