-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (33 loc) · 1004 Bytes
/
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: CI tests
# yamllint disable-line rule:truthy
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize]
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
tests:
name: Run ${{ matrix.type }} tests for python ${{matrix.python}}
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.12]
type: [unit]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/[email protected]
- name: Prepare python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_test.txt
- name: Run ${{ matrix.type }} tests
run: pytest tests/${{ matrix.type }}