-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (51 loc) · 1.44 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
---
name: CI
on:
push:
branches: ["main"]
pull_request:
jobs:
tests:
name: "Python ${{ matrix.python-version }} on ${{ matrix.machine }}"
runs-on: "${{ matrix.machine }}"
strategy:
fail-fast: false
matrix:
include:
# linux
- python-version: "3.7"
machine: ubuntu-22.04
- python-version: "3.8"
machine: ubuntu-22.04
- python-version: "3.9"
machine: ubuntu-22.04
- python-version: "3.10"
machine: ubuntu-22.04
- python-version: "3.11"
machine: ubuntu-22.04
- python-version: "3.12"
machine: ubuntu-22.04
# mindows
- python-version: "3.7"
machine: windows-latest
- python-version: "3.12"
machine: windows-latest
# mac
- python-version: "3.7"
machine: macos-13
- python-version: "3.12"
machine: macos-latest
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: |
python -VV
python -m site
python -m pip install --upgrade pip virtualenv tox tox-gh-actions
- name: "Run tox targets for ${{ matrix.python-version }}"
run: |
python -m tox
- uses: codecov/codecov-action@v3