-
Notifications
You must be signed in to change notification settings - Fork 27
49 lines (38 loc) · 1.11 KB
/
ci.yml
File metadata and controls
49 lines (38 loc) · 1.11 KB
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
49
---
name: Lint, Typecheck, and Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
- name: Install Poetry
uses: abatilo/actions-poetry@b8f6fe29ba2eb78e0d45ccbf41cd14154c4e25b2
- name: Configure Poetry
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install package
run: poetry install --all-extras
- name: Lint
run: poetry run ruff check --output-format=github rigging
- name: Typecheck
if: always()
run: poetry run mypy rigging
- name: Test
if: always()
run: poetry run pytest