Skip to content

Bump setuptools-scm from 8.0.4 to 9.2.2 #19

Bump setuptools-scm from 8.0.4 to 9.2.2

Bump setuptools-scm from 8.0.4 to 9.2.2 #19

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
tags:
- v*
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python --version
pip install -U setuptools wheel
pip install -e .
pip install -e .[dev]
pip install -e .[optional]
- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p junit
nosetests --with-xunit --with-coverage --cover-package=lockable --cover-html --cover-html-dir=htmlcov --cover-xml-file=coverage.xml --xunit-file=junit/results.xml
coveralls || true
- name: Run pylint
run: |
pylint lockable
- name: Upload coverage
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}
path: htmlcov
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: junit-${{ matrix.python-version }}
path: junit
deploy:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python --version
pip install -U setuptools wheel
pip install -e .
pip install -e .[dev]
- name: Build package
run: |
python setup.py sdist
python setup.py bdist_wheel
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
pip install twine
twine upload dist/*