Skip to content

Commit 1238fcd

Browse files
committed
Try to fix tests and tying GitHub Actions workflows
In the process also delete the common action file because it isn't useful.
1 parent 3cea301 commit 1238fcd

File tree

3 files changed

+11
-42
lines changed

3 files changed

+11
-42
lines changed

.github/actions/setup-python-env/action.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ jobs:
2222
steps:
2323
- name: Check out
2424
uses: actions/checkout@v4
25-
26-
- name: Set up the environment
27-
uses: ./.github/actions/setup-python-env
25+
with:
26+
fetch-depth: 0 # Needed for setuptools_scm to work correctly
27+
- name: Install uv and set the python version
28+
uses: astral-sh/setup-uv
2829
with:
2930
python-version: ${{ matrix.python-version }}
30-
extra-dependencies: --all-extras --dev
31+
- name: Install the project
32+
run: uv sync --all-extras --dev
3133

3234
- name: Run tests
3335
run: uv run inv pytest --junit --no-pty --base

.github/workflows/typecheck.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ jobs:
2323
steps:
2424
- name: Check out
2525
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0 # Needed for setuptools_scm to work correctly
2628

27-
- name: Set up the environment
28-
uses: ./.github/actions/setup-python-env
29+
- name: Install uv and set the python version
30+
uses: astral-sh/setup-uv
2931
with:
3032
python-version: ${{ matrix.python-version }}
31-
extra-dependencies: --group validate
3233

3334
- name: Check typing
34-
run: uv run mypy
35+
run: uv run mypy .

0 commit comments

Comments
 (0)