-
Notifications
You must be signed in to change notification settings - Fork 22
39 lines (34 loc) · 1.03 KB
/
default.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
name: default
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: Gr1N/setup-poetry@v4
with:
poetry-version: 1.1.5
- uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-poetry-
- run: make install-deps
- run: make lint
if: matrix.python-version == 3.9
- run: docker-compose up -d && sleep 10
- run: make test
- run: docker-compose down
if: always()
- run: make codecov
if: matrix.python-version == 3.9
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}