-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.55 KB
/
pytest.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
name: Python tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-2004:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Setup Python # Set Python version
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install --upgrade pip && pip install pytest
- name: Generate cert
run: mkdir .lib && openssl req -newkey rsa:4096 -nodes -keyout .lib/selfsigned.key -x509 -days 36500 -out .lib/selfsigned.cert -subj "/C=US/ST=NRW/L=Earth/O=CompanyName/OU=IT/CN=localhost/[email protected]"
- name: Test with pytest
run: python -m pytest lotordb/test
build-latest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Setup Python # Set Python version
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install --upgrade pip && pip install pytest
- name: Generate cert
run: mkdir .lib && openssl req -newkey rsa:4096 -nodes -keyout .lib/selfsigned.key -x509 -days 36500 -out .lib/selfsigned.cert -subj "/C=US/ST=NRW/L=Earth/O=CompanyName/OU=IT/CN=localhost/[email protected]"
- name: Test with pytest
run: python -m pytest lotordb/test