-
Notifications
You must be signed in to change notification settings - Fork 38
34 lines (34 loc) · 1.01 KB
/
compatibility.yaml
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
name: Compatibility
on:
schedule:
- cron: '0 4 * * SUN'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ['3.12']
toxenv: [py312-test, py312-test-dev]
release: [main, latest]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- if: matrix.release != 'main'
name: Checkout Release
run: |
git checkout tags/$(curl -s https://api.github.com/repos/skypyproject/skypy/releases/${{ matrix.release }} | python -c "import sys, json; print(json.load(sys.stdin)['tag_name'])")
- name: Install Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run Tests
run: |
tox -e ${{ matrix.toxenv }} ${{ matrix.toxargs }} -- ${{ matrix.toxposargs }}