Skip to content

Add slot descriptions, matcher randomness #240

Add slot descriptions, matcher randomness

Add slot descriptions, matcher randomness #240

Workflow file for this run

name: pre-commit
on:
pull_request:
branches: [master]
push:
branches: [master]
workflow_dispatch:
jobs:
pre-commit:
name: "pre-commit"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
- name: Parse Python version from runtime.txt
run: |
sed 's/[^0-9.]//g' runtime.txt | head > .python-version
- name: Set up Pylint pre-commit
run: |
# remove all instances of docker compose exec; github CI doesn't use docker
sed -E 's/docker compose exec -T \w+\s*//g' .pre-commit-config.yaml > .pre-commit-config-ci.yaml
mv .pre-commit-config-ci.yaml .pre-commit-config.yaml
touch .env # ensure .env file exists
- name: Set up Python
uses: actions/setup-python@v4
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies with Poetry
run: |
poetry install --no-root --with=prod --no-interaction --no-ansi
# add virtual environment to path for future steps
echo $(poetry env info --path)/bin >> $GITHUB_PATH
- name: Install npm dependencies
run: |
npm ci
- name: Run pre-commit hooks
uses: pre-commit/[email protected]
with:
# only check changed files
extra_args: "--files ${{ steps.changed-files.outputs.all_changed_files }}"