-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 909 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
40
41
42
43
name: Tests
on:
workflow_dispatch:
push:
branches:
- master
paths:
- "cherry/**"
- "tests/**"
pull_request:
paths:
- "cherry/**"
- "tests/**"
jobs:
tests:
name: Run Pytest
runs-on: ${{ matrix.os }}
concurrency:
group: test-${{ github.ref }}-${{ matrix.os }}-${{ matrix.python-version }}
cancel-in-progress: true
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
env:
OS: ${{ matrix.os }}
PYTHON_VERSION: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Setup Python environment
uses: ./.github/actions/setup-python
- name: Install Optional Dependencies
run: poetry install --extras "all"
- name: Run Pytest
run: poetry run pytest