fix badges #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install -e .[test] | |
pip install twine wheel | |
- 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@v3 | |
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__)" |