-
Notifications
You must be signed in to change notification settings - Fork 195
40 lines (32 loc) · 914 Bytes
/
ci.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
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
poetry-version: [1.8.2]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Poetry ${{ matrix.poetry-version }}
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'poetry'
cache-dependency-path: poetry.lock
- name: Install dependencies
run: poetry install
- name: Code Quality
run: |
poetry run black -l 80 --check .
- name: Unit tests
run: |
poetry run pytest --cov .