parent
b189690a28
commit
05a136bb11
@ -0,0 +1,26 @@ |
||||
--- |
||||
name: build |
||||
|
||||
on: [push] |
||||
|
||||
jobs: |
||||
build: |
||||
|
||||
runs-on: ubuntu-latest |
||||
|
||||
steps: |
||||
- uses: actions/checkout@v1 |
||||
|
||||
- name: Set up Python 3.7 |
||||
uses: actions/setup-python@v1 |
||||
with: |
||||
python-version: 3.7 |
||||
|
||||
- name: Install dependencies |
||||
run: | |
||||
python -m pip install --upgrade pip |
||||
pip install --upgrade -r requirements-test.txt |
||||
|
||||
- name: Run pre-commit on all files |
||||
run: pre-commit run --all-files |
||||
|
@ -1,17 +0,0 @@ |
||||
--- |
||||
dist: xenial |
||||
language: python |
||||
python: 3.7 |
||||
# pre-commit hooks can use Docker, so we should go ahead and enable it |
||||
services: docker |
||||
|
||||
# Cache pip packages and pre-commit plugins to speed up builds |
||||
cache: |
||||
pip: true |
||||
directories: |
||||
- $HOME/.cache/pre-commit |
||||
|
||||
install: |
||||
- pip install --upgrade -r requirements-test.txt |
||||
script: |
||||
- pre-commit run --all-files |
Loading…
Reference in new issue