chore(git): update signingkey #283
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: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
id: cache-pip | |
with: | |
path: | | |
~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
${{ runner.os }}- | |
- uses: actions/cache@v4 | |
id: cache-shellcheck | |
with: | |
path: bin/shellcheck | |
key: ${{ runner.os }}-shellcheck | |
restore-keys: | | |
${{ runner.os }}-shellcheck | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Install virtualenv | |
run: | | |
sudo apt-get update && sudo apt-get install -y python3-setuptools python3-wheel | |
- name: Setup bin directories | |
run: | | |
mkdir -p "$(pwd)/bin" | |
export PATH=$(pwd)/bin:$HOME/.local/bin:$PATH | |
- name: Get shellcheck binary | |
if: steps.cache-shellcheck.outputs.cache-hit != 'true' | |
run: | | |
export SHELLCHECK_VERSION=v0.9.0 | |
wget -qO- https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION}/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz | tar -xJv | |
mv "shellcheck-${SHELLCHECK_VERSION}/shellcheck" "$(pwd)/bin/shellcheck" | |
chmod +x "$(pwd)/bin/shellcheck" | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Lint and test | |
run: | | |
timeout 1h make test |