-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1007 Bytes
/
test.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
name: Testing
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
test:
name: ${{ matrix.os }} / ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os:
- ubuntu
python-version:
- "3.12"
- "3.11"
- "3.10"
env:
TEST_ENV: CI
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Log python version info (${{ matrix.python-version }})
run: python --version
- name: Install dependencies
run: |
pip install -r requirements/prod.txt
pip install -r requirements/test.txt
pip install -e .
- name: pytest
run: |
python -m pytest -v --cov-report term-missing --cov=gpx_track_analyzer