Skip to content

Commit c27ac88

Browse files
committed
Use normal tox-uv.
1 parent f59bccf commit c27ac88

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ concurrency:
55
group: ${{ github.head_ref || github.run_id }}
66
cancel-in-progress: true
77

8-
env:
9-
CONDA_EXE: mamba
10-
118
on:
129
push:
1310
branches:
@@ -18,6 +15,21 @@ on:
1815

1916
jobs:
2017

18+
run-type-checking:
19+
20+
name: Run tests for type-checking
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: actions/setup-python@v5
26+
with:
27+
python-version-file: .python-version
28+
allow-prereleases: true
29+
cache: pip
30+
- run: pip install tox-uv
31+
- run: tox -e typing
32+
2133
run-tests:
2234

2335
name: Run tests for ${{ matrix.os }} on ${{ matrix.python-version }}
@@ -33,18 +45,12 @@ jobs:
3345
- uses: actions/checkout@v4
3446
- uses: r-lib/actions/setup-tinytex@v2
3547
if: runner.os != 'Windows'
36-
- uses: mamba-org/setup-micromamba@v1
48+
- uses: actions/setup-python@v5
3749
with:
38-
environment-name: gha-testing
39-
condarc: |
40-
channels:
41-
- nodefaults
42-
- conda-forge
43-
create-args: >-
44-
python=${{ matrix.python-version }}
45-
mamba
46-
tox-conda
47-
cache-environment: true
50+
python-version: ${{ matrix.python-version }}
51+
cache: pip
52+
allow-prereleases: true
53+
- run: pip install tox-uv
4854

4955
- name: Install MacOS dependencies.
5056
if: runner.os == 'macOS'
@@ -56,26 +62,22 @@ jobs:
5662
shell: bash -l {0}
5763
run: tlmgr install import epstopdf biblatex biber
5864

59-
- name: Install core dependencies.
60-
shell: bash -l {0}
61-
run: conda install -c conda-forge tox-conda coverage
62-
6365
# Unit, integration, and end-to-end tests.
6466

6567
- name: Run unit tests and doctests.
6668
shell: bash -l {0}
6769
run: tox -e pytest -- src tests -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
6870

69-
- name: Upload coverage report for unit tests and doctests.
70-
if: runner.os == 'Linux' && matrix.python-version == '3.10'
71-
shell: bash -l {0}
72-
run: bash <(curl -s https://codecov.io/bash) -F unit -c
71+
- name: Upload unit test coverage reports to Codecov with GitHub Action
72+
uses: codecov/codecov-action@v4
73+
with:
74+
flags: unit
7375

7476
- name: Run end-to-end tests.
7577
shell: bash -l {0}
7678
run: tox -e pytest -- src tests -m end_to_end --cov=./ --cov-report=xml -n auto
7779

78-
- name: Upload coverage reports of end-to-end tests.
79-
if: runner.os == 'Linux' && matrix.python-version == '3.10'
80-
shell: bash -l {0}
81-
run: bash <(curl -s https://codecov.io/bash) -F end_to_end -c
80+
- name: Upload end_to_end test coverage reports to Codecov with GitHub Action
81+
uses: codecov/codecov-action@v4
82+
with:
83+
flags: end_to_end

0 commit comments

Comments
 (0)