Skip to content

[pre-commit.ci] pre-commit autoupdate #561

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #561

Workflow file for this run

# SPDX-FileCopyrightText: 2021 Jeff Epler
#
# SPDX-License-Identifier: CC0-1.0
name: Test wwvbgen
on:
push:
pull_request:
release:
types: [published]
check_suite:
types: [rerequested]
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12.0-alpha.0 - 3.12'
- 'pypy-3.9'
os-version:
- 'ubuntu-latest'
include:
- os-version: 'macos-latest'
python-version: '3.x'
- os-version: 'windows-latest'
python-version: '3.x'
runs-on: ${{ matrix.os-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install deps
run: |
python -mpip install wheel
python -mpip install -r requirements-dev.txt
- name: Check stubs
if: (! startsWith(matrix.python-version, 'pypy-'))
run: make mypy PYTHON=python
- name: Test
run: make coverage PYTHON=python
- name: Upload Coverage as artifact
if: always()
uses: actions/upload-artifact@v3
with:
name: coverage for ${{ matrix.python-version }} on ${{ matrix.os-version }}
path: coverage.xml
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: pre-commit
run: pip install pre-commit && pre-commit run --all