5
5
branches :
6
6
- ' **'
7
7
tags-ignore :
8
- - ' **'
9
- paths-ignore : # Don't trigger on files that are updated by the CI
10
- - ' pyproject.toml' # Note changes to poetry.lock will still build
11
- - ' setup.py'
12
- - ' README.rst'
8
+ - ' *.*'
13
9
14
10
jobs :
15
11
@@ -19,61 +15,55 @@ jobs:
19
15
- uses : actions/checkout@v1
20
16
- name : Perform housekeeping checks
21
17
env :
22
- GCLOUD_CONTAINER_AUTH : ${{ secrets.GCLOUD_CONTAINER_AUTH }}
23
18
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
19
run : |
25
20
source <(curl -sL http://ci.q-ctrl.com)
26
21
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
27
- ./ci docker run asia.gcr.io/q-ctrl-api-development/ python-37 /scripts/housekeeping.sh
22
+ ./ci docker run qctrl/ python-build:3.7 /scripts/housekeeping.sh
28
23
29
24
linting :
30
25
runs-on : ubuntu-latest
31
26
steps :
32
27
- uses : actions/checkout@v1
33
28
- name : Install Python dependencies
34
- env :
35
- GCLOUD_CONTAINER_AUTH : ${{ secrets.GCLOUD_CONTAINER_AUTH }}
36
29
run : |
37
30
source <(curl -sL http://ci.q-ctrl.com)
38
31
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
39
- ./ci docker run asia.gcr.io/q-ctrl-api-development/ python-37 /scripts/install-python-dependencies.sh
32
+ ./ci docker run qctrl/ python-build:3.7 /scripts/install-python-dependencies.sh
40
33
- name : Run Pylint
41
34
run : |
42
- ./ci docker run asia.gcr.io/q-ctrl-api-development/ python-37 poetry run pylint_runner || true
35
+ ./ci docker run qctrl/ python-build:3.7 poetry run pylint_runner || true
43
36
- name : Run Pylama
44
37
run : |
45
- ./ci docker run asia.gcr.io/q-ctrl-api-development/ python-37 poetry run pylama || true
38
+ ./ci docker run qctrl/ python-build:3.7 poetry run pylama || true
46
39
- name : Run Markdownlint
47
40
run : |
48
- ./ci docker run asia.gcr.io/q-ctrl-api-development/ python-37 mdl -- -ig . || true
41
+ ./ci docker run qctrl/ python-build:3.7 mdl -- -ig . || true
49
42
50
43
pytest :
51
44
runs-on : ubuntu-latest
52
45
strategy :
53
46
matrix :
54
- python : [36, 37 ]
47
+ python : [3.6, 3.7 ]
55
48
steps :
56
49
- uses : actions/checkout@v1
57
50
- name : Install Python dependencies
58
- env :
59
- GCLOUD_CONTAINER_AUTH : ${{ secrets.GCLOUD_CONTAINER_AUTH }}
60
51
run : |
61
52
source <(curl -sL http://ci.q-ctrl.com)
62
53
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
63
- ./ci docker run asia.gcr.io/q-ctrl-api-development/ python-${{ matrix.python }} /scripts/install-python-dependencies.sh
54
+ ./ci docker run qctrl/ python-build: ${{ matrix.python }} /scripts/install-python-dependencies.sh
64
55
- name : Run Pytest
65
56
run : |
66
- ./ci docker run asia.gcr.io/q-ctrl-api-development/ python-${{ matrix.python }} /scripts/pytest.sh
57
+ ./ci docker run qctrl/ python-build: ${{ matrix.python }} /scripts/pytest.sh
67
58
68
59
publish_internally :
69
60
runs-on : ubuntu-latest
70
61
steps :
71
62
- uses : actions/checkout@v1
72
63
- name : Publish development version
73
64
env :
74
- GCLOUD_CONTAINER_AUTH : ${{ secrets.GCLOUD_CONTAINER_AUTH }}
75
65
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76
66
run : |
77
67
source <(curl -sL http://ci.q-ctrl.com)
78
68
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
79
- ./ci docker run asia.gcr.io/q-ctrl-api-development/ python-37 /scripts/publish-dev-version.sh
69
+ ./ci docker run qctrl/ python-build:3.7 /scripts/publish-dev-version.sh
0 commit comments