-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (38 loc) · 1.14 KB
/
push.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
on:
[push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.11', '3.12' ]
name: Run checks in Python ${{ matrix.python-version }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Poetry
uses: snok/install-poetry@v1.3.0
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies with Poetry
run: poetry install --no-interaction --no-root
- name: Check types with mypy
run: |
source .venv/bin/activate
mypy .
- name: Lint code with pylint and flake8
run: |
source .venv/bin/activate
pylint barkr
flake8 --extend-exclude ".venv"
- name: Run tests with pytest
run: |
source .venv/bin/activate
pytest --cov=barkr --cov-fail-under=80 -vvv