|
11 | 11 | - '*.*' |
12 | 12 |
|
13 | 13 | jobs: |
14 | | - pytest: |
| 14 | + check-dependencies: |
15 | 15 | # Filter out Draft Pull Requests |
16 | 16 | if: github.event.pull_request.draft == false |
17 | 17 | runs-on: ubuntu-latest |
|
20 | 20 | - name: Ensure no development packages have been set |
21 | 21 | run: | |
22 | 22 | source <(curl -sL http://ci.q-ctrl.com) |
23 | | - ./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }} |
24 | 23 | ./ci docker run qctrl/python-build:3.7 /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@v1 |
| 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.7-ci /scripts/install-python-dependencies.sh |
| 34 | + - name: Run Pre-Commit |
| 35 | + run: | |
| 36 | + ./ci docker run qctrl/ci-images:python-3.7-ci poetry run pre-commit run -- -a |
| 37 | + pytest: |
| 38 | + # Filter out PRs originating from this repository (triggers on-push.yml instead) |
| 39 | + if: github.event.pull_request.head.repo.fork == true |
| 40 | + runs-on: ubuntu-latest |
| 41 | + strategy: |
| 42 | + matrix: |
| 43 | + python: [3.6, 3.7, 3.8] |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v1 |
| 46 | + - name: Install Python dependencies |
| 47 | + run: | |
| 48 | + source <(curl -sL http://ci.q-ctrl.com) |
| 49 | + ./ci docker run qctrl/python-build:${{ matrix.python }} /scripts/install-python-dependencies.sh |
| 50 | + - name: Run Pytest |
| 51 | + run: | |
| 52 | + ./ci docker run qctrl/python-build:${{ matrix.python }} /scripts/pytest.sh |
| 53 | + sphinx_documentation: |
| 54 | + # Filter out PRs originating from this repository (triggers on-push.yml instead) |
| 55 | + if: github.event.pull_request.head.repo.fork == true |
| 56 | + runs-on: ubuntu-latest |
| 57 | + steps: |
| 58 | + - uses: actions/checkout@v2 |
| 59 | + - name: Build Sphinx Image |
| 60 | + run: | |
| 61 | + source <(curl -sL http://ci.q-ctrl.com) |
| 62 | + ./ci docker build \ |
| 63 | + -f ./docs/Dockerfile \ |
| 64 | + --suffix -docs |
25 | 65 | #################### Maintained by repositories-manager - do not edit directly #################### |
0 commit comments