Skip to content

Commit

Permalink
ci: switch to uv and pytest-xdist (#546)
Browse files Browse the repository at this point in the history
* ci: switch to uv

* ci: use pytest xdist
  • Loading branch information
andrzejnovak authored Feb 19, 2025
1 parent 2b873b1 commit 9203331
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,35 @@ jobs:
python-version: "3.9"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
version: "latest"
python-version: ${{ matrix.python-version }}
allow-prereleases: true
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"

- name: Requirements check
run: uv pip list

- name: Install core fonts
if: runner.os == 'Linux'
run: |
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo apt-get install ttf-mscorefonts-installer
- name: Install dependencies
- name: Install package
run: |
python -m pip install --upgrade pip pytest-github-actions-annotate-failures
python -m pip install -q --no-cache-dir -e .[all]
python -m pip list
uv pip install -e ".[all]"
uv pip install pytest-github-actions-annotate-failures
uv pip install pytest-xdist
uv pip list
- name: Test with pytest
run: |
python -m pytest -r sa --mpl --mpl-results-path=pytest_results
python -m pytest -r sa --mpl --mpl-results-path=pytest_results -n 4
- name: Upload pytest test results
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 9203331

Please sign in to comment.