-
Notifications
You must be signed in to change notification settings - Fork 26
61 lines (50 loc) · 1.32 KB
/
python.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
54
55
56
57
58
59
60
61
name: python
on:
push:
branches:
- main
pull_request:
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci --ignore-scripts
- run: make test-metrics-python-django
- run: make test-metrics-python-flask
- run: make test-webhooks-python-flask
- name: Cleanup
if: always()
run: docker-compose down
build:
name: ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: packages/python
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
python-version:
# https://endoflife.date/python
- 3.7 # EOL: June 27th, 2023
- 3.8 # EOL: October 14th, 2024
- 3.9 # EOL: October 5rd, 2025
- '3.10' # EOL: October 4rd, 2026
- '3.11' # EOL: October 24th, 2027
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: make install
- name: Check code standards
run: make lint
- name: Run tests
run: make test