Debian Codegraph @

.github/workflows/python-package.yaml

raw
1 name: CI/CD Pipeline
2
3 on:
4 - push
5 - pull_request
6
7 jobs:
8 test:
9 name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
10 runs-on: ${{ matrix.os }}
11
12 strategy:
13 fail-fast: false
14 matrix:
15 os:
16 - ubuntu-latest
17 - macos-latest
18 - windows-latest
19 python-version:
20 - "3.8"
21 - "3.9"
22 - "3.10"
23 - "3.11"
24 - "3.12"
25 exclude:
26 # 3.8 on windows fails due to some pip issue
27 - os: windows-latest
28 python-version: "3.8"
29
30 steps:
31 - uses: actions/checkout@v3
32 - uses: actions/setup-python@v4
33 with:
34 python-version: ${{ matrix.python-version }}
35
36 - run: |
37 make venv
38 - run: |
39 make test
40
41
42 lint:
43 runs-on: ubuntu-latest
44
45 steps:
46 - uses: actions/checkout@v3
47 - uses: actions/setup-python@v4
48 with:
49 python-version: "3.x"
50
51 - run: |
52 make venv
53 - run: |
54 make lint
55
56
57 mypy:
58 runs-on: ubuntu-latest
59
60 steps:
61 - uses: actions/checkout@v3
62 - uses: actions/setup-python@v4
63 with:
64 python-version: "3.x"
65
66 - run: |
67 make venv
68 - run: |
69 make mypy
70
71
72 test-release:
73 runs-on: ubuntu-latest
74
75 steps:
76 - uses: actions/checkout@v3
77 - uses: actions/setup-python@v4
78 with:
79 python-version: "3.x"
80
81 - run: |
82 make venv
83 - run: |
84 make test-release