Skip to content

✨ Updated supported python versions. (#14) #6

✨ Updated supported python versions. (#14)

✨ Updated supported python versions. (#14) #6

Workflow file for this run

# This workflow will install Python dependencies, run test and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: CD
on:
push:
tags:
- 'v*'
jobs:
build-python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.12
steps:
- uses: actions/checkout@v2
- id: get_version
name: get version from tag
uses: battila7/get-version-action@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install
- name: Lint with flake8
run: |
inv lint
- name: Test with pytest
run: |
inv test
- name: Publish to pypi
run: |
poetry version ${{ steps.get_version.outputs.version-without-v }}
poetry publish --build --username "__token__" --password "${{ secrets.PYPI_TOKEN }}"
- name: Upload Python resources to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*
tag: ${{ github.ref }}
file_glob: true
- name: Update docs
run: |
mkdocs gh-deploy --force