Skip to content

Update versions to 0.3.0 in advance of new release #57

Update versions to 0.3.0 in advance of new release

Update versions to 0.3.0 in advance of new release #57

Workflow file for this run

# This workflow will run tests on PRs
name: PyTest On PR
on:
pull_request:
branches:
- master
jobs:
test:
name: ${{ matrix.platform }} / ${{ matrix.python-version }}
strategy:
matrix:
python-version:
- 3.6
- 3.7
- 3.8
- 3.9
- "3.10"
- "3.11"
- "3.12"
platform:
- ubuntu-20.04
- macos-latest
- macos-13
- windows-latest
exclude:
# 3.6, 3.7 doesn't exist as a runner on arm64 macs
- python-version: 3.6
platform: macos-latest
- python-version: 3.7
platform: macos-latest
runs-on: "${{ matrix.platform }}"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}
- name: Setup poetry
uses: abatilo/actions-poetry@v2
- name: Fix urllib3 for py 3.7
if: ${{ matrix.python-version == '3.7' }}
shell: bash
run: pip3 install -I urllib3==2.0.7
- name: Update PATH
if: ${{ matrix.platorm != 'windows-latest' }}
shell: bash
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Update Path for Windows
if: ${{ matrix.platform == 'windows-latest' }}
shell: bash
run: echo "$APPDATA\\Python\\Scripts" >> $GITHUB_PATH
- name: Configure poetry
shell: bash
run: poetry config virtualenvs.in-project true
- name: Update pip and install setuptools
shell: bash
run: |
python -m pip install pip --upgrade
pip install setuptools
- name: Poetry check & build
shell: bash
run: poetry check && poetry build
- name: Install dependencies
shell: bash
run: poetry install
- name: Mypy
shell: bash
run: poetry run mypy .
- name: Pylint
shell: bash
run: poetry run pylint coverage_lcov tests
- name: PyTest
shell: bash
run: poetry run coverage run --source=coverage_lcov -m pytest tests && poetry run coverage report
- name: Eat our own dog food
shell: bash
run: poetry run coverage-lcov
- name: Report code coverage
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.9' }}
uses: zgosalvez/github-actions-report-lcov@v1
with:
coverage-files: lcov.info
minimum-coverage: 0
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: coverage_lcov