-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (31 loc) · 795 Bytes
/
Copy pathtests.yml
File metadata and controls
38 lines (31 loc) · 795 Bytes
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
name: Tests and Linting
on:
workflow_call:
pull_request:
push:
branches:
- main
jobs:
unit-tests:
name: Unit tests ${{ matrix.python-version }}
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [ "3.10", "3.11", "3.12" ]
fail-fast: false
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build unit tests image
run: docker build --build-arg PYTHON_VERSION=${{ matrix.python-version }} -t pydfy .
- name: Run pytest
run: docker run pydfy -m pytest /home/pydfy-user/pydfy
checks:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0