-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (41 loc) · 1016 Bytes
/
ci.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: CI
jobs:
test:
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
os: [ubuntu-latest]
python: ['3.10', '3.11', '3.12']
include:
- os: macos-latest
python: '3.10'
- os: windows-latest
python: '3.10'
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install package
run: |
poetry install --with test
- name: Run tests
run: |
poetry run pytest --junit-xml=test-${{ matrix.os }}-Python-${{ matrix.python }}.xml
- uses: codecov/codecov-action@v3
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main