argparse: make "-c/--casenum" optional #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
Test: | |
strategy: | |
matrix: | |
include: | |
# (mkg): github has deprecated ubuntu 18.04 | |
# runners and apparently started removing them | |
# too. so, we're running ubuntu:18.04 containers | |
# on top of ubuntu-20.04 to get test coverage in | |
# bionic too. The rest do not need this -- yet. | |
- os: ubuntu-20.04 | |
vars: { toxenv: py36, aptpkg: python3.6, container: 'ubuntu:18.04' } | |
- os: ubuntu-20.04 | |
vars: { toxenv: py37, aptpkg: python3.7, container: 'ubuntu:18.04' } | |
- os: ubuntu-20.04 | |
vars: { toxenv: py38, aptpkg: python3.8, container: 'ubuntu:18.04' } | |
- os: ubuntu-20.04 | |
vars: { toxenv: py38, aptpkg: python3.8 } | |
- os: ubuntu-20.04 | |
vars: { toxenv: py39, aptpkg: python3.9 } | |
- os: ubuntu-22.04 | |
vars: { toxenv: py310, aptpkg: python3.10 } | |
- os: ubuntu-22.04 | |
vars: { toxenv: py311, aptpkg: python3.11 } | |
fail-fast: true | |
runs-on: ${{ matrix.os }} | |
container: ${{ matrix.vars.container }} # github actions will ignore this when unset | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: | | |
if [[ "$EUID" -ne 0 ]]; then | |
SUDO_CMD="sudo -H" | |
else | |
SUDO_CMD="" | |
fi | |
$SUDO_CMD apt -y update | |
$SUDO_CMD apt -y install git python3 python3-pip | |
$SUDO_CMD pip3 install --upgrade pip==20.3.4 | |
$SUDO_CMD apt -y install ${{ matrix.vars.aptpkg }} | |
pip3 install tox | |
shell: bash | |
- name: Run unit tests () | |
run: | | |
echo "Environment" ${{ matrix.vars.toxenv }} | |
tox -e "${{ matrix.vars.toxenv }}" |