Skip to content

Bump flake8 from 7.1.0 to 7.1.1 #802

Bump flake8 from 7.1.0 to 7.1.1

Bump flake8 from 7.1.0 to 7.1.1 #802

Workflow file for this run

name: Tests
on:
push:
branches:
- main
tags:
- '*'
pull_request:
jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
uses: abatilo/actions-poetry@v3.0.0
- name: Poetry Install
run: poetry install
- name: Run flake8
run: poetry run flake8
- name: Run black
run: poetry run black --verbose --check .
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
uses: abatilo/actions-poetry@v3.0.0
- name: Poetry Install
run: poetry install
- name: Run sphinx
run: poetry run sphinx-build -W -b html docs public
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: public
deploy_docs:
runs-on: ubuntu-latest
needs: docs
if: ${{ github.ref == 'refs/heads/main' }}
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: abatilo/actions-poetry@v3.0.0
- name: Poetry Install
run: poetry install
- name: Run pytest
run: poetry run pytest -vvv --cov=monitorcontrol
- name: Upload coverage data to coveralls.io
run: poetry run coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: py${{ matrix.python-version }}
COVERALLS_PARALLEL: true
coveralls:
name: Indicate completion to coveralls.io
needs: pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
uses: abatilo/actions-poetry@v3.0.0
- name: Poetry Install
run: poetry install
- name: Finished
run: poetry run coveralls --finish --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
name: PyPi Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs:
- pytest
- docs
- style
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
uses: abatilo/actions-poetry@v3.0.0
- name: Poetry Install
run: poetry install
- name: Poetry publish
run: poetry publish --build
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}