Skip to content

Commit

Permalink
Merge 29c15db into e0066de
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy committed Feb 21, 2022
2 parents e0066de + 29c15db commit e56b87c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/linting_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: checks

on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v2

- name: set up python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: set PY
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV

- name: cache stuff
uses: actions/cache@v2
with:
path: |
${{ env.pythonLocation }}
~/.cache/pre-commit
key: |
pre-commit-${{ env.PY }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: install dependencies
run: pip install pre-commit

- name: Install pre-commit hooks
run: pre-commit install

# This will run on all files in the repo not just those that have been
# committed. Once formatting has been applied once globally, from then on
# the files being changed by pre-commit should be just those that are
# being committed - provided that people are using the pre-commit hook to
# format their code.
- name: run pre-commit
run: pre-commit run --all-files --color always
6 changes: 5 additions & 1 deletion .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: tests

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

env:
REGISTRY: ghcr.io
Expand Down

0 comments on commit e56b87c

Please sign in to comment.