Skip to content

chore(deps): update actions/checkout action to v4 #12

chore(deps): update actions/checkout action to v4

chore(deps): update actions/checkout action to v4 #12

Workflow file for this run

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@v4
- name: Install Dependencies
run: |
if [[ "$EUID" -ne 0 ]]; then
SUDO_CMD="sudo"
else
SUDO_CMD=""
fi
$SUDO_CMD apt -y update
$SUDO_CMD apt -y install git python3 python3-pip
$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 }}"