-
Notifications
You must be signed in to change notification settings - Fork 70
72 lines (60 loc) · 1.95 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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.8", "3.10", "3.11", "3.12", "3.13"]
include: # testing the last "reasonable supported" version
- runs-on: macOS-13
python-version: "3.9"
- runs-on: macOS-14
python-version: "3.8" # min version available for Apple silicon
- runs-on: windows-latest
python-version: "3.9"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
uv-venv: ".venv"
- name: Enable uv running on windows
if: runner.os == 'Windows'
run: |
VIRTUAL_ENV=./.venv
- 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 package
run: |
uv pip install -e ".[all]"
uv pip list
# python -m pip install --upgrade pip pytest-github-actions-annotate-failures
- 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@v4
if: failure()
with:
name: pytest_results-${{ matrix.python-version }}-${{ matrix.runs-on }}
retention-days: 3
path: pytest_results