Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: switch to uv and pytest-xdist #546

Merged
merged 2 commits into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading