File tree Expand file tree Collapse file tree 4 files changed +33
-43
lines changed Expand file tree Collapse file tree 4 files changed +33
-43
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@v2
10
- - name : Set up Python
11
- uses : actions /setup-python@v4
10
+ - name : Install uv
11
+ uses : astral-sh /setup-uv@v6
12
12
with :
13
- python- version : 3.8
13
+ version : " 0.7.x "
14
14
- name : Install dependencies
15
- run : |
16
- python -m pip install --upgrade pip
17
- pip install -r requirements/base.txt
18
- pip install mypy
15
+ run : uv sync --frozen
19
16
- name : Create a dummy data.py
20
17
run : cp data.py-dist data.py
21
18
- name : Install additional typing data and check with mypy
22
- run : mypy --install-types --non-interactive lib/ conftest.py pkgfixtures.py tests/
19
+ run : uv run mypy --install-types --non-interactive lib/ conftest.py pkgfixtures.py tests/
23
20
24
21
pyright :
25
22
runs-on : ubuntu-latest
26
23
steps :
27
24
- uses : actions/checkout@v2
28
- - name : Set up Python
29
- uses : actions /setup-python@v4
25
+ - name : Install uv
26
+ uses : astral-sh /setup-uv@v6
30
27
with :
31
- python- version : 3.8
28
+ version : " 0.7.x "
32
29
- name : Install dependencies
33
- run : |
34
- python -m pip install --upgrade pip
35
- pip install -r requirements/base.txt
36
- pip install pyright
30
+ run : uv sync --frozen
37
31
- name : Create a dummy data.py
38
32
run : cp data.py-dist data.py
39
33
- name : Check with pyright
40
- run : pyright lib/ conftest.py pkgfixtures.py # tests/
34
+ run : uv run pyright lib/ conftest.py pkgfixtures.py # tests/
Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@v2
10
- - name : Set up Python
11
- uses : actions/setup-python@v4
10
+ - name : Install uv
11
+ uses : astral-sh/setup-uv@v6
12
+ with :
13
+ version : " 0.7.x"
12
14
- name : Install dependencies
13
- run : |
14
- python -m pip install --upgrade pip
15
- pip install flake8
15
+ run : uv sync --frozen
16
16
- name : flake8
17
- run : |
18
- flake8
17
+ run : uv run flake8
19
18
20
19
pydocstyle :
21
20
runs-on : ubuntu-latest
22
21
steps :
23
22
- uses : actions/checkout@v2
24
- - name : Set up Python
25
- uses : actions/setup-python@v2
23
+ - name : Install uv
24
+ uses : astral-sh/setup-uv@v6
25
+ with :
26
+ version : " 0.7.x"
26
27
- name : Install dependencies
27
- run : |
28
- python -m pip install --upgrade pip
29
- pip install pydocstyle
28
+ run : uv sync --frozen
30
29
- name : pydocstyle
31
- run : |
32
- pydocstyle
30
+ run : uv run pydocstyle
Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@v2
10
- - name : Set up Python
11
- uses : actions /setup-python@v4
10
+ - name : Install uv
11
+ uses : astral-sh /setup-uv@v6
12
12
with :
13
- python- version : 3.8
13
+ version : " 0.7.x "
14
14
- name : Install dependencies
15
- run : |
16
- python -m pip install --upgrade pip
17
- pip install -r requirements/base.txt
15
+ run : uv sync --frozen
18
16
- name : Create a dummy data.py
19
17
run : cp data.py-dist data.py
20
18
- name : jobs-check
21
- run : ./jobs.py check
19
+ run : uv run ./jobs.py check
Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@v2
10
- - name : Set up Python
11
- uses : actions/setup-python@v4
10
+ - name : Install uv
11
+ uses : astral-sh/setup-uv@v6
12
+ with :
13
+ version : " 0.7.x"
12
14
- name : Install dependencies
13
- run : |
14
- python -m pip install --upgrade pip
15
- pip install -r requirements/base.txt
15
+ run : uv sync --frozen
16
16
- name : Create a dummy data.py
17
17
run : cp data.py-dist data.py
18
18
- name : jobs-check
19
19
run : |
20
20
FAILURES=""
21
21
for seq in $(find -name "*.lst"); do
22
- if ! pytest @$seq --collect-only --quiet; then
22
+ if ! uv run pytest @$seq --collect-only --quiet; then
23
23
FAILURES="$FAILURES $seq"
24
24
fi
25
25
done
You can’t perform that action at this time.
0 commit comments