-
Notifications
You must be signed in to change notification settings - Fork 98
39 lines (35 loc) · 847 Bytes
/
unit-tests.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: Unit tests
on: # yamllint disable-line rule:truthy
workflow_dispatch:
push:
branches:
- master
- v*
pull_request:
branches:
- master
- v*
schedule:
- cron: '0 22 * * 0'
jobs:
unit-tests:
name: Unit tests
strategy:
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
container:
image: ghcr.io/${{ github.repository }}:CI-${{ matrix.python_version }}-msodbc18
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: pip install -r dev_requirements.txt
- name: Run unit tests
run: pytest -n auto -ra -v tests/unit