Use latest version as minimum #212
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: | |
push: | |
branches: | |
- master | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version}} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version}} | |
- name: Install dependencies | |
run: | | |
python -m pip install -U pip | |
pip install -U setuptools | |
pip install pre-commit | |
- name: Set PY env var | |
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Test with pre-commit | |
run: pre-commit run --all-files || ( git status --short ; git diff ; exit 1 ) | |
herokuish_build: | |
runs-on: ubuntu-latest | |
container: | |
image: gliderlabs/herokuish:latest | |
volumes: | |
- ${{ github.workspace }}:/tmp/app | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test build with herokuish | |
run: /bin/herokuish test |