1313
1414jobs :
1515
16- lint :
17- name : Lint Codebase
16+ pre-commit :
17+ name : Static Code Checks
1818 # pull requests are a duplicate of a branch push if within the same repo.
1919 if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
2020 runs-on : ubuntu-latest
21-
2221 steps :
23- - name : Checkout
24- uses : actions/checkout@v4
25-
26- - name : Install dependencies
27- run : |
28- python -m pip install --upgrade pip
29- python -m pip install .[dev]
30-
31- - name : Lint
32- run : |
33- tox -e pre-commit,mypy
34-
35-
22+ - uses : actions/checkout@v4
23+ -
uses :
pre-commit/[email protected] 3624
3725
3826 test :
@@ -47,28 +35,26 @@ jobs:
4735
4836 steps :
4937 - uses : actions/checkout@v4
50- - name : Set up Python ${{ matrix.python-version }}
51- uses : actions/setup-python@v4
38+
39+ - name : Install uv and set the python version
40+ uses : astral-sh/setup-uv@v6
5241 with :
5342 python-version : ${{ matrix.python-version }}
54-
55-
43+
44+
5645
5746 - name : Install dependencies
58- run : |
59- python -m pip install --upgrade pip
60- python -m pip install .[dev]
61-
47+ run : uv sync --all-extras
48+
6249 - name : Add PATH envirnoment variable for xprocess
6350 run : |
64- pip freeze
6551 echo "PATH_VAR=$PATH" >> "$GITHUB_ENV"
66-
67- - name : Run Tests
52+
53+ - name : Run Tests
6854 run : |
69- tox -e pytest
70-
71-
55+ uv run pytest tests/ -v
56+
57+
7258 build :
7359 name : Build distribution 📦
7460 runs-on : ubuntu-latest
9783 name : >-
9884 Publish to PyPI
9985 if : ${{startsWith(github.ref, 'refs/tags/')}} # only publish to PyPI on tag pushes
100- needs : [lint ,test,build]
86+ needs : [pre-commit ,test,build]
10187 runs-on : ubuntu-latest
10288 environment :
10389 name : pypi
@@ -113,14 +99,3 @@ jobs:
11399 path : dist/
114100 - name : Publish distribution 📦 to PyPI
115101 uses : pypa/gh-action-pypi-publish@release/v1
116-
117-
118-
119-
120-
121-
122-
123-
124-
125-
126-
0 commit comments