File tree Expand file tree Collapse file tree 2 files changed +53
-58
lines changed
Expand file tree Collapse file tree 2 files changed +53
-58
lines changed Original file line number Diff line number Diff line change 1+ name : Lint, Typecheck, and Test
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ ci :
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ python-version : ["3.10", "3.11", "3.12"]
15+
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - name : Checkout code
20+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
21+
22+ - name : Setup Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
24+ with :
25+ python-version : ${{ matrix.python-version }}
26+
27+ - name : Install Poetry
28+ uses : abatilo/actions-poetry@e78f54a89cb052fff327414dd9ff010b5d2b4dbd
29+
30+ - name : Configure Poetry
31+ run : |
32+ poetry config virtualenvs.create true --local
33+ poetry config virtualenvs.in-project true --local
34+
35+ - name : Cache dependencies
36+ uses : actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
37+ with :
38+ path : ./.venv
39+ key : venv-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
40+ restore-keys : |
41+ venv-${{ runner.os }}-py${{ matrix.python-version }}-
42+
43+ - name : Install package
44+ run : poetry install --all-extras
45+
46+ - name : Lint
47+ run : poetry run ruff check --output-format=github rigging
48+
49+ - name : Typecheck
50+ run : poetry run mypy rigging
51+
52+ - name : Test
53+ run : poetry run pytest
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments