-
-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (36 loc) · 1.19 KB
/
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
44
45
name: Tests
on: [push, pull_request]
jobs:
tests:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
os: [ubuntu-20.04, macos-11, windows-2019]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.6.1
- name: Install Dependencies
run: poetry install
- name: Run Tests (Pure Python with coverage)
run: poetry run pytest --cov=iscc_core --cov-report=xml -q tests
- name: Build Extension modules
run: poetry install --extras turbo
- name: Run Tests (With Extension Modules)
run: poetry run pytest -q tests --turbo
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.8'
- name: Build Wheel
run: poetry build -f wheel
- name: Collect Wheel
uses: actions/upload-artifact@v3
with:
path: dist/*.whl