-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 787 Bytes
/
pythonci.yml
File metadata and controls
34 lines (31 loc) · 787 Bytes
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
name: Python CI
on:
- push
- pull_request
jobs:
backend:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v1
with:
python-version: 3.9
- uses: Gr1N/setup-poetry@v8
- uses: actions/cache@v3
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- run: poetry --version
- name: Install dependencies
run: |
poetry install --no-interaction --no-ansi
- name: Test with pytest/flake8/mypy
env:
PYTEST_ADDOPTS: "--color=yes"
run: |
make test