-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.14 KB
/
ci.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
40
41
42
43
44
45
46
47
48
name: CI
on:
pull_request:
push:
branches: [main]
jobs:
test-linux:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
python-version: ["3.11.4"]
experimental: [false]
include:
- python-version: "3.12.0-beta.3"
experimental: true
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install poetry
run: pipx install poetry==1.5.1
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Use python ${{ matrix.python-version }} for poetry
run: poetry env use ${{ matrix.python-version }}
- name: Install dependencies
run: poetry install
- name: Run pre-commit linters and checks
run: poetry run pre-commit run --all-files
if: ${{ matrix.python-version == '3.11.4' }}
- name: Check typing with mypy
run: poetry run mypy --strict
- name: Run tests
run: poetry run pytest tests