Build(deps-dev): bump pytest-benchmark from 5.0.0 to 5.0.1 #412
Workflow file for this run
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
# This workflow will install Python dependencies, | |
# run tests with a variety of Python versions, | |
# and upload a new build to TestPyPI. | |
# | |
# For more information see: | |
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Unit tests | |
on: [ push, pull_request ] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
python-version: [ | |
'3.9', | |
'3.10', | |
'3.11', | |
# 'pypy-3.10', | |
] | |
env: | |
PYTHON_VERSION: ${{ matrix.python-version }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: Gr1N/setup-poetry@v9 | |
- name: Install library and dependencies | |
run: | | |
poetry run pip install --upgrade pip setuptools | |
poetry install --with dev,tests | |
poetry run maturin develop | |
- name: Run Tox (Pytest + Coverage) | |
run: | | |
poetry run tox | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PLATFORM: ${{ matrix.os }} | |
- name: Upload Results to CodeCov | |
if: success() | |
uses: codecov/codecov-action@v4 | |
with: | |
env_vars: PYTHON_VERSION | |
fail_ci_if_error: false | |
files: ./tests/reports/coverage-html/index.html,./tests/reports/coverage.xml | |
flags: unittests | |
name: "${{ matrix.os }} - Python ${{ matrix.python-version }}" | |
token: ${{ secrets.CODECOV_TOKEN }} | |
testpypi-deploy: | |
name: Build and publish Python 🐍 distributions 📦 to TestPyPI | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Build test release 📦 | |
uses: messense/maturin-action@v1 | |
with: | |
manylinux: auto | |
command: build | |
args: --release --sdist -o dist --find-interpreter | |
- name: Publish test release 📦 to Test PyPI | |
uses: messense/maturin-action@v1 | |
continue-on-error: true | |
env: | |
MATURIN_PYPI_TOKEN: ${{ secrets.TEST_PYPI_PASSWORD }} | |
with: | |
command: upload | |
args: --skip-existing * --repository-url "https://test.pypi.org/legacy" |