-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.01 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
name: pipeline
on:
pull_request:
push:
branches: [main]
jobs:
test-job:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -e .
pip install -r requirements-dev.txt
- name: Run tests
run: |
pytest -v --cov-report xml --cov=peak_performance --cov-report term-missing peak_performance
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
- name: Test Wheel build, install and import
run: |
python setup.py bdist_wheel
twine check dist/*
cd dist
pip install peak_performance*.whl
python -c "import peak_performance; print(peak_performance.__version__)"