forked from vladimarius/pyap
-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (34 loc) · 941 Bytes
/
qa.yml
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
name: QA checks
on: # yamllint disable-line rule:truthy
push:
jobs:
build:
runs-on: ubuntu-latest
strategy: # launches
fail-fast: false
matrix:
task: # yamllint disable rule:indentation
- lint
- yamllint
- check_types
- check_fmt
- test
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9.12
uses: actions/setup-python@v2
with:
python-version: 3.9.12
- name: Set up cache
uses: actions/cache@v2
id: cache
with:
path: /home/runner/.cache/pypoetry/virtualenvs
key: venv-${{ hashFiles('**/.github/workflows/qa.yml') }}-${{ hashFiles('**/poetry.lock')
}}
- name: Install dependencies
run: |2
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.4.2 python3 -
poetry install
- name: QA
run: poetry run task ${{ matrix['task'] }}