Skip to content

Bump version to 0.9.2 #13

Bump version to 0.9.2

Bump version to 0.9.2 #13

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Release
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version}}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Test with pytest
run: |
#Create virtual environment
python -m venv venv
#Activate virtual environment
source venv/bin/activate
#Install dependencies
pip install -r requirements.txt
pip install -r requirements-dev.txt
#Run unit tests
coverage run -m unittest discover . --pattern '*test.py'
coverage report
- name: release
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
python -m build
twine upload dist/*