Skip to content

Bump version: 0.7.1 → 0.7.2 #73

Bump version: 0.7.1 → 0.7.2

Bump version: 0.7.1 → 0.7.2 #73

Workflow file for this run

name: cardutil package
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
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 package and test dependencies
run: |
python -m pip install --upgrade pip
pip install ".[test]"
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 . --count --exit-zero --statistics
- name: Test with pytest
run: |
pytest
- name: Test coverage
run: |
coverage run -m pytest
coverage report --fail-under 95 -m
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- uses: actions/checkout@v4
- name: Install build
run: python -m pip install --upgrade pip && python -m pip install build
- name: Create the package
run: python -m build --sdist --wheel --outdir dist/
- name: Save the build artefacts
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
publish:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download dist packages
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish cardutil to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN_TEST }}
repository_url: https://test.pypi.org/legacy/
- name: Publish cardutil to PyPI (Production)
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}