-
Notifications
You must be signed in to change notification settings - Fork 60
59 lines (47 loc) · 1.27 KB
/
timetk-checks.yaml
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
49
50
51
52
53
54
55
56
57
58
59
name: timetk-checks
on:
schedule:
- cron: '0 0 1 * *'
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
config:
- { os: ubuntu-latest, python-version: '3.9' }
- { os: ubuntu-latest, python-version: '3.10' }
- { os: ubuntu-latest, python-version: '3.11' }
- { os: windows-latest, python-version: '3.9' }
- { os: macos-latest, python-version: '3.9' }
defaults:
run:
shell: bash
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.python-version }})
steps:
- name: Set up Python Version
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.config.python-version }}
- name: Check-out repository
uses: actions/checkout@v2
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install package
run: poetry install
- run: |
source $VENV
pytest --version
- name: Test with pytest
run: poetry run pytest tests/ --verbose