Do some spring cleanin'. #133
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
# This file was written by Damien Dart, <[email protected]>. This is | |
# free and unencumbered software released into the public domain. For | |
# more information, please refer to the accompanying "UNLICENCE" file. | |
--- | |
name: 'Lint Project' | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
lint-yaml: | |
name: 'Lint project' | |
runs-on: 'ubuntu-20.04' | |
steps: | |
- name: 'Check out repository' | |
uses: 'actions/checkout@v3' | |
- name: 'Set up Python environment' | |
uses: 'actions/setup-python@v4' | |
with: | |
cache: 'pip' | |
cache-dependency-path: '**/requirements*.txt' | |
python-version: '${{ matrix.python-version }}' | |
# The version of ShellCheck installed via APT is a little | |
# out-of-date and doesn't support the "shell" directive required | |
# for checking ".zshrc" and ".zprofile". | |
- name: 'Install ShellCheck' | |
run: | | |
wget -qO- https://github.com/koalaman/shellcheck/releases/download/v0.9.0/shellcheck-v0.9.0.linux.x86_64.tar.xz | tar -xJf - | |
sudo cp shellcheck-v0.9.0/shellcheck /usr/local/bin | |
- name: 'Install Task' | |
run: 'curl -sL https://taskfile.dev/install.sh | sh' | |
- name: 'Install project dependencies and run all linting-related tasks' | |
run: | | |
./bin/task start | |
source .venv/bin/activate | |
./bin/task ci | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' |