Skip to content

Commit bdb744d

Browse files
committed
ci: refactor lints and tests
1 parent 09090b5 commit bdb744d

File tree

3 files changed

+44
-26
lines changed

3 files changed

+44
-26
lines changed

.github/workflows/lint.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Lint
2+
on: [push, pull_request]
3+
jobs:
4+
ruff:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: chartboost/ruff-action@v1
9+
10+
pyright:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v4
15+
with:
16+
cache: 'pip'
17+
18+
- run: |
19+
python -m venv .venv
20+
source .venv/bin/activate
21+
pip install -e '.[test,cli]'
22+
23+
- run: echo "$PWD/.venv/bin" >> $GITHUB_PATH
24+
- uses: jakebailey/pyright-action@v2
25+
26+
tests:
27+
runs-on: ubuntu-latest
28+
strategy:
29+
matrix:
30+
python-version: [3.9, 3.10, 3.11, 3.12]
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-python@v4
34+
with:
35+
cache: 'pip'
36+
python-version: ${{ matrix.python-version }}
37+
38+
- run: |
39+
python -m venv .venv
40+
source .venv/bin/activate
41+
pip install -e '.[test,cli]'
42+
43+
- run: echo "$PWD/.venv/bin" >> $GITHUB_PATH
44+
- run: pytest

.github/workflows/pyright.yml

-18
This file was deleted.

.github/workflows/ruff.yml

-8
This file was deleted.

0 commit comments

Comments
 (0)