Skip to content

Commit 9ef69b0

Browse files
committed
Use uv to run tox in CI
1 parent b49bf2c commit 9ef69b0

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/_tox.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717

1818
- name: Install python packages
1919
uses: ./.github/actions/install_requirements
20-
20+
2121
- name: Install helm plugins
2222
run: helm plugin install https://github.com/losisin/helm-values-schema-json.git
23-
23+
2424
- name: Run tox
25-
run: tox -e ${{ inputs.tox }}
25+
run: uv run --frozen tox -e ${{ inputs.tox }}

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ jobs:
3232
python-version: ${{ matrix.python-version }}
3333

3434
- name: Unit tests
35-
run: uv run tox -e tests
35+
uses: ./.github/workflows/_tox.yml
36+
with:
37+
tox: -e tests
3638

3739
- name: Upload coverage to Codecov
3840
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5
@@ -66,7 +68,9 @@ jobs:
6668
run: uv run blueapi -c ${{ github.workspace }}/tests/unit_tests/example_yaml/valid_stomp_config.yaml serve &
6769

6870
- name: Run tests
69-
run: uv run tox -e system-test
71+
uses: ./.github/workflows/_tox.yml
72+
with:
73+
tox: -e system-test
7074

7175
container:
7276
needs: [test, system-test]

0 commit comments

Comments
 (0)