@@ -2,13 +2,18 @@ name: CI
2
2
3
3
on :
4
4
workflow_dispatch :
5
-
6
5
pull_request :
7
-
8
6
push :
9
7
branches :
10
8
- master
11
9
10
+ concurrency :
11
+ group : ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress : true
13
+
14
+ env :
15
+ FORCE_COLOR : 3 # "3" -> "256-bit color".
16
+
12
17
jobs :
13
18
test :
14
19
runs-on : ubuntu-latest
@@ -30,27 +35,29 @@ jobs:
30
35
extra-install : " "
31
36
- name : " 3.11-pre-beartype"
32
37
python-version : " 3.11"
33
- extra-install : " pip install --upgrade --pre beartype"
38
+ extra-install : " uv pip install --upgrade --pre beartype"
34
39
35
40
name : Test ${{ matrix.value.name }}
36
41
steps :
37
42
- uses : actions/checkout@v2
38
- - name : Set up Python ${{ matrix.value.python-version }}
39
- uses : actions /setup-python@v2
43
+ - name : Install uv
44
+ uses : astral-sh /setup-uv@v3
40
45
with :
41
- python-version : ${{ matrix.value.python-version }}
46
+ enable-cache : true
47
+ cache-dependency-glob : " uv.lock"
48
+ - name : Set up Python ${{ matrix.value.python-version }}
49
+ run : uv python install ${{ matrix.python-version }}
42
50
- name : Install dependencies
43
51
run : |
44
- python -m pip install --upgrade pip
45
- python -m pip install --upgrade --no-cache-dir -e '.[dev]'
52
+ uv sync --group dev
46
53
${{ matrix.value.extra-install }}
47
54
- name : Test linter assertions
48
55
run : |
49
56
python check_linter_assertions.py tests/typechecked
50
57
- name : Run tests
51
58
run : |
52
59
PRAGMA_VERSION=`python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))"` \
53
- pytest -v --cov=plum --cov-report term-missing
60
+ uv run pytest -v --cov=plum --cov-report term-missing
54
61
- name : Coveralls parallel
55
62
uses : coverallsapp/github-action@v2
56
63
with :
0 commit comments