-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.06 KB
/
check.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
name: check
# lifted from https://github.com/ymyzk/tox-gh-actions/blob/master/.github/workflows/tests.yml
on:
push:
pull_request:
schedule: # Check monthly
- cron: '6 4 3 * *'
jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform:
- ubuntu-latest # ubuntu-20.04
- macos-latest # macOS-11
- windows-latest # windows-2022
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', 3.12-dev, pypy-3.7, pypy-3.8, pypy-3.9]
steps:
- uses: actions/checkout@v3
if: ${{ ! startsWith(matrix.python-version, 'pypy-') }}
- uses: actions/checkout@v1
if: ${{ startsWith(matrix.python-version, 'pypy-') }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install --pre tox-gh-actions
- name: Test with tox
run: tox