Skip to content

Bump version: 1.1.0 → 1.1.1 #33

Bump version: 1.1.0 → 1.1.1

Bump version: 1.1.0 → 1.1.1 #33

Workflow file for this run

name: Check test and code linting
on: [push]
jobs:
test-and-lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: '3.8'
tox: min
- python-version: '3.9'
- python-version: '3.10'
- python-version: '3.11'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: pre-commit/[email protected]
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox codecov
- name: tox
run: |
tox -e ${{ matrix.toxenv || 'py' }}
- name: Upload coverage.xml to codecov
if: ${{ matrix.python-version == 3.11 }}
uses: codecov/codecov-action@v1
publish:
needs: test-and-lint
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*