mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
[CI] Speed up test workflow install phase by using uv (#254)
* [CI] Speed up install phase by using uv * [CI] Use uv in examples workflow * [CI] Fix yml syntax * [CI] Install uv into system env * [CI] Add system install for examples workflow
This commit is contained in:
parent
9ff34c27d7
commit
7eabd68c5f
2 changed files with 12 additions and 14 deletions
12
.github/workflows/examples.yml
vendored
12
.github/workflows/examples.yml
vendored
|
@ -27,17 +27,17 @@ jobs:
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: uv
|
||||||
|
uses: astral-sh/setup-uv@v5
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended cm-super
|
sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended cm-super
|
||||||
python -m pip install --upgrade pip
|
uv pip install wheel --system
|
||||||
pip install wheel
|
uv pip install . --system
|
||||||
pip install .
|
uv pip install pytest nbmake --system
|
||||||
pip install pytest
|
uv pip install -U matplotlib!=3.7.0 --system # Exclude version 3.7.0 of matplotlib as this breaks local imports of style files.
|
||||||
pip install nbmake
|
|
||||||
pip install -U matplotlib!=3.7.0 # Exclude version 3.7.0 of matplotlib as this breaks local imports of style files.
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest -vv --nbmake examples/*.ipynb
|
run: pytest -vv --nbmake examples/*.ipynb
|
||||||
|
|
14
.github/workflows/pytest.yml
vendored
14
.github/workflows/pytest.yml
vendored
|
@ -30,17 +30,15 @@ jobs:
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: uv
|
||||||
|
uses: astral-sh/setup-uv@v5
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
uv pip install wheel --system
|
||||||
pip install wheel
|
uv pip install . --system
|
||||||
pip install .
|
uv pip install pytest pytest-cov pytest-benchmark hypothesis --system
|
||||||
pip install pytest
|
uv pip freeze --system
|
||||||
pip install pytest-cov
|
|
||||||
pip install pytest-benchmark
|
|
||||||
pip install hypothesis
|
|
||||||
pip freeze
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest --cov=pyerrors -vv
|
run: pytest --cov=pyerrors -vv
|
||||||
|
|
Loading…
Add table
Reference in a new issue