This repository has been archived by the owner on Dec 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (63 loc) · 2.19 KB
/
on-push.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
66
67
68
69
name: Push workflow
on:
push:
branches:
- '**'
tags-ignore:
- '*.*'
jobs:
housekeeping:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Perform housekeeping checks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
source <(curl -sL http://ci.q-ctrl.com)
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
./ci docker run qctrl/ci-images:python-3.7-ci /scripts/housekeeping.sh
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Python dependencies
run: |
source <(curl -sL http://ci.q-ctrl.com)
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
./ci docker run qctrl/ci-images:python-3.7-ci /scripts/install-python-dependencies.sh
- name: Run Pylint
run: |
./ci docker run qctrl/ci-images:python-3.7-ci poetry run pylint_runner || true
- name: Run Pylama
run: |
./ci docker run qctrl/ci-images:python-3.7-ci poetry run pylama || true
- name: Run Markdownlint
run: |
./ci docker run qctrl/ci-images:python-3.7-ci mdl -- -ig . || true
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.7, 3.8]
steps:
- uses: actions/checkout@v1
- name: Install Python dependencies
run: |
source <(curl -sL http://ci.q-ctrl.com)
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
./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
publish_internally:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Publish development version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
source <(curl -sL http://ci.q-ctrl.com)
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
./ci docker run qctrl/ci-images:python-3.7-ci /scripts/publish-dev-version.sh