@@ -32,49 +32,35 @@ jobs:
3232 - ubuntu-latest
3333 python-version :
3434 - " 3.9"
35- - " 3.10"
36- - " 3.11"
3735 - " 3.12"
36+ - " 3.13"
3837 include :
3938 - os : windows-latest
4039 python-version : " 3.9"
4140 - os : macos-13
4241 python-version : " 3.9"
43- - os : macos-14
42+ - os : macos-latest
4443 python-version : " 3.12" # old versions not supported
4544 name : Check Python ${{ matrix.python-version }} ${{ matrix.os }}
4645 steps :
4746 - uses : actions/checkout@v4
4847 with :
4948 fetch-depth : 0
50-
5149 - name : Setup Python ${{ matrix.python-version }}
5250 uses : actions/setup-python@v5
5351 with :
5452 python-version : ${{ matrix.python-version }}
5553
56- - name : Get pip cache dir
57- id : pip-cache
58- run : |
59- echo "::set-output name=dir::$(pip cache dir)"
60- - name : pip cache
61- uses : actions/cache@v4.1.2
62- with :
63- path : ${{ steps.pip-cache.outputs.dir }}
64- key : ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }}-pip-${{ hashFiles('**/setup.py') }}-pip-${{ hashFiles('**/pyproject.toml') }}
65- restore-keys : |
66- ${{ runner.os }}-pip-
67-
6854 - name : Install package
6955 run : |
70- python -m pip install --upgrade pip
71- python -m pip install -e .[test] pytest-xdist # for multiprocessing
56+ pip install uv
57+ uv pip install --system - e .[test] pytest-xdist # for multiprocessing, -e needed for pathes etc.
7258
7359 - name : Test package
7460 run : python -m pytest --doctest-modules --cov=hepstats --cov-report=xml -n auto
7561
7662 - name : Upload coverage to Codecov
77- if : matrix.python-version == '3.12 ' && matrix.os == 'ubuntu-latest'
63+ if : matrix.python-version == '3.9 ' && matrix.os == 'ubuntu-latest'
7864 uses : codecov/codecov-action@v4
7965 with :
8066 token : ${{ secrets.CODECOV_TOKEN }} # technically not needed, but prevents failures: https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
@@ -106,13 +92,16 @@ jobs:
10692 - uses : actions/checkout@v4
10793 with :
10894 fetch-depth : 0
109- - uses : actions/setup-python@v5
95+
96+ - name : Setup Python 3.9
97+ uses : actions/setup-python@v5
11098 with :
111- python-version : " 3.11"
99+ python-version : 3.9
100+
112101 - name : Install dependencies
113102 run : |
114- pip install -U -q -e .[docs]
115- pip list
103+ pip install uv
104+ uv pip install --system -e .[docs]
116105 - name : build docs
117106 run : |
118107 sphinx-build -b html docs docs/_build/html
0 commit comments