-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 855 Bytes
/
build.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
name: build
on: [push]
env:
SRC_DIRS: "contextvars_registry tests docs"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.12' ]
name: run tests on Python v${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup Poetry
uses: abatilo/actions-poetry@v2
- name: Install Python packages
run: |
poetry install --no-root
- name: ruff
run: |
poetry run ruff check $SRC_DIRS
- name: mypy
run: |
poetry run mypy $SRC_DIRS
- name: pytest
run: |
poetry run pytest -vv --cov=contextvars_registry --cov-fail-under=100 $SRC_DIRS