Skip to content

Misc Housekeeping

Misc Housekeeping #9

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- '**'
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.9, '3.10', 3.11, pypy-3.8, pypy-3.9, pypy-3.10]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip coverage markdown
- name: Run tests
run: |
coverage run test_gh_links.py
- name: Generate coverage report
if: success()
run: |
coverage xml
coverage report --show-missing --include=mdx_gh_links.py
- name: Upload Results
if: success()
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unittests
name: ${{ matrix.os }}/Python ${{ matrix.python-version }}
fail_ci_if_error: false
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: TrueBrain/actions-flake8@master
with:
max_line_length: 118
mdlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DavidAnson/markdownlint-cli2-action@v11
with:
config: '.markdownlint.jsonc'
globs: '**/*.md'