@@ -14,90 +14,60 @@ jobs:
1414 runs-on : ubuntu-latest
1515
1616 steps :
17- - uses : actions/checkout@v3
17+ - uses : actions/checkout@v6
1818
19- - name : Setup Python
20- uses : actions /setup-python@v4
19+ - name : Install uv
20+ uses : astral-sh /setup-uv@v7
2121 with :
2222 python-version : " 3.10"
2323
2424 - name : Install Dependencies
25- run : |
26- python -m pip install --upgrade pip
27- pip install .[lint]
25+ run : uv sync --group lint
2826
29- - name : Run Black
30- run : black -- check .
27+ - name : Run Ruff Lint
28+ run : uv run ruff check .
3129
32- - name : Run isort
33- run : isort --check-only .
34-
35- - name : Run flake8
36- run : flake8 .
30+ - name : Run Ruff Format
31+ run : uv run ruff format --check .
3732
3833 - name : Run mdformat
39- run : mdformat . --check
34+ run : uv run mdformat --check README.md CONTRIBUTING.md docs
4035
4136 type-check :
4237 runs-on : ubuntu-latest
4338
4439 steps :
45- - uses : actions/checkout@v3
40+ - uses : actions/checkout@v6
4641
47- - name : Setup Python
48- uses : actions /setup-python@v4
42+ - name : Install uv
43+ uses : astral-sh /setup-uv@v7
4944 with :
5045 python-version : " 3.10"
5146
5247 - name : Install Dependencies
53- run : |
54- python -m pip install --upgrade pip
55- pip install .[lint,test]
48+ run : uv sync --group lint --group test
5649
5750 - name : Run MyPy
58- run : mypy .
51+ run : uv run mypy .
5952
6053 functional :
6154 runs-on : ${{ matrix.os }}
6255
6356 strategy :
6457 matrix :
65- os : [ubuntu-latest, macos-latest] # eventually add `windows-latest`
66- python-version : [3.9, "3.10", "3.11", "3.12", "3.13"]
67-
58+ os : [ubuntu-latest, macos-latest]
59+ python-version : ["3.10", "3.11", "3.12", "3.13", "3.14"]
6860 steps :
69- - uses : actions/checkout@v3
61+ - uses : actions/checkout@v6
7062
71- - name : Setup Python
72- uses : actions /setup-python@v4
63+ - name : Install uv
64+ uses : astral-sh /setup-uv@v7
7365 with :
7466 python-version : ${{ matrix.python-version }}
7567
7668 - name : Install Dependencies
77- run : |
78- python -m pip install --upgrade pip
79- pip install .[test]
69+ run : uv sync --group test
8070
8171 - name : Run Tests
82- run : pytest -m "not fuzzing" -n 0 -s --cov
83-
84- # NOTE: uncomment this block after you've marked tests with @pytest.mark.fuzzing
85- # fuzzing:
86- # runs-on: ubuntu-latest
87- #
88- # strategy:
89- # fail-fast: true
90- #
91- # steps:
92- # - uses: actions/checkout@v3
93- #
94- # - name: Setup Python
95- # uses: actions/setup-python@v4
96- # with:
97- # python-version: "3.10"
98- #
99- # - name: Install Dependencies
100- # run: pip install .[test]
101- #
102- # - name: Run Tests
103- # run: pytest -m "fuzzing" --no-cov -s
72+ run : uv run ape test -m "not fuzzing" -n 0 -s --cov
73+
0 commit comments