covsub/.github/workflows/build.yml
Jeff Epler 056369a3b3
Some checks failed
Test wwvbgen / test (1) (push) Has been cancelled
Test wwvbgen / test (10) (push) Has been cancelled
is it fixed by newest git?
2025-08-09 11:14:51 -05:00

52 lines
1.1 KiB
YAML

# SPDX-FileCopyrightText: 2021-2024 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:
parallelism:
- 1
- 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install deps
run: |
python -mpip install wheel
python -mpip install git+https://github.com/nedbat/coveragepy.git
- name: Coverage
run: |
make -j${{ matrix.parallelism }}
python -mcoverage xml --include "*.py"
python -mcoverage html --include "*.py"
python -mcoverage report --fail-under=100 --include "*.py"
- name: Upload Coverage as artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage with parallelism ${{ matrix.parallelism }}
path: coverage.xml