CI #2871
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- 'master*' | |
pull_request: | |
# Run daily at 0:01 UTC | |
schedule: | |
- cron: '1 0 * * *' | |
jobs: | |
test: | |
name: "🐍 ${{ matrix.python-version }} • ${{ matrix.runs-on }}" | |
runs-on: ${{ matrix.runs-on }} | |
strategy: | |
matrix: | |
runs-on: [ubuntu-latest] | |
python-version: ["3.7", "3.8", "3.10", "3.11"] | |
include: | |
- runs-on: macOS-latest | |
python-version: "3.7" | |
- runs-on: macOS-latest | |
python-version: "3.11" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- 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 | |
run: | | |
python -m pip install --upgrade pip setuptools wheel pytest-github-actions-annotate-failures | |
python -m pip install -q --no-cache-dir -e .[all] | |
python -m pip list | |
- name: Test with pytest | |
run: | | |
python -m pytest -r sa --mpl --mpl-results-path=pytest_results | |
- name: Upload pytest test results | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: pytest_results-${{ matrix.python-version }}-${{ matrix.runs-on }} | |
retention-days: 3 | |
path: pytest_results |