-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (32 loc) · 1.05 KB
/
main.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
name: CI
on:
push:
branches: ["*"]
pull_request: # needed to trigger on others' PRs
workflow_dispatch: # needed to trigger workflows manually
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
exclude:
[
{ platform: macos-latest, python-version: "3.9" },
{ platform: macos-latest, python-version: "3.10" },
{ platform: macos-latest, python-version: "3.11" },
]
runs-on: ${{ matrix.platform }}
steps:
- run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v2
with:
fetch-depth: 0 # nicer to have all git history when debugging/for tests
- run: ./install
- uses: actions/upload-artifact@v2
with:
name: .coverage.mypy-${{ matrix.platform }}_${{ matrix.python-version }}
path: .coverage.mypy/