-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (45 loc) · 1.3 KB
/
python-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: Python CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
unittest:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: Whist-Team/actions/setup-poetry@v2
with:
python-version: ${{ matrix.python-version }}
- name: 'Unittest with pytest & coverage'
uses: Whist-Team/actions/test-cov@v2
with:
package: whist_server
token: ${{ secrets.CODECOV_TOKEN }}
integrationtest:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.9', '3.10', '3.11' ]
mongodb-version: [ '4.4', '5.0', '6.0' ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: Whist-Team/actions/setup-poetry@v2
with:
python-version: ${{ matrix.python-version }}
- name: Start MongoDB
uses: supercharge/mongodb-github-action@v1
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Integrationtest with pytest
uses: Whist-Team/actions/test-cov@v2
with:
package: whist_server
token: ${{ secrets.CODECOV_TOKEN }}
test-type: integtest