Skip to content

Add simple table

Add simple table #39

Workflow file for this run

name: ci
on:
pull_request:
branches:
- main
workflow_dispatch:
inputs:
debug_enabled:
description: "Enable tmate debug"
type: boolean
default: "false"
jobs:
check-semantic-version:
if: "!contains(github.event.head_commit.message, 'skipci')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Set fetch-depth to 0 to fetch all tags (necessary for `git-mkver` to determine the correct semantic version).
fetch-depth: 0
# See: https://github.com/marketplace/actions/check-semantic-version
- uses: octue/[email protected]
with:
path: pyproject.toml
breaking_change_indicated_by: minor
run-tests:
if: "!contains(github.event.head_commit.message, 'skipci')"
strategy:
fail-fast: true
matrix:
python: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest] # [ubuntu-latest, windows-latest, macos-latest] for full coverage but this gets expensive quickly
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
# See the repo of this action for way more advanced caching strategies than used here
- name: Install Poetry
uses: snok/install-poetry@v1
# For more advanced configuration see https://github.com/ymyzk/tox-gh-actions
- name: Install tox and plugins
run: |
python -m pip install --upgrade pip
python -m pip install tox==3.24.5 tox-gh-actions==2.9.1 tox-poetry==0.4.1
- name: Setup tmate session [DEBUG]
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true'}}
uses: mxschmitt/action-tmate@v3
# For more advanced configuration see https://github.com/ymyzk/tox-gh-actions
- name: Run tests using tox
run: tox
- name: Upload coverage to Codecov
# This seems redundant inside the test matrix but actually isn't, since different
# dependency combinations may cause different lines of code to be hit (e.g. backports)
uses: codecov/codecov-action@v1
with:
file: coverage.xml
fail_ci_if_error: true