-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.13 KB
/
static-checks.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
name: Static checks
on:
pull_request:
push:
branches:
- main
jobs:
static-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get python version
run: |
python_version=$(cat .python-version)
echo "python_version=${python_version}" >> $GITHUB_ENV
- name: Load cache
uses: actions/cache@v3
with:
path: |
~/.local
~/.cache/pre-commit
key: python-${{ env.python_version }}-poetry-1.5.1-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install poetry
uses: snok/install-poetry@v1
with:
version: '1.5.1'
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install Python ${{ env.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.python_version }}
cache: poetry
- name: Install dependencies
run: |
make install
- name: Linters
run: |
make lint
- name: Unit Tests
run: |
make unit-tests