2022-01-31 08:55:22 +00:00
|
|
|
name: FailCheck
|
2022-01-31 08:52:15 +00:00
|
|
|
|
2022-01-31 09:03:26 +00:00
|
|
|
on: [push, pull_request]
|
2021-09-09 03:12:04 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
2022-01-31 09:03:26 +00:00
|
|
|
strategy:
|
|
|
|
max-parallel: 5
|
|
|
|
matrix:
|
2022-01-31 09:15:53 +00:00
|
|
|
python-version: [3.9]
|
2021-09-09 03:12:04 +00:00
|
|
|
|
|
|
|
steps:
|
2022-01-31 08:52:15 +00:00
|
|
|
- uses: actions/checkout@v2
|
2022-01-31 09:03:26 +00:00
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
2022-01-31 08:52:15 +00:00
|
|
|
uses: actions/setup-python@v2
|
2021-09-09 03:12:04 +00:00
|
|
|
with:
|
2022-01-31 09:03:26 +00:00
|
|
|
python-version: ${{ matrix.python-version }}
|
2021-09-09 03:12:04 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2022-01-31 09:03:26 +00:00
|
|
|
sudo apt-get install libpq-dev
|
2021-09-09 03:12:04 +00:00
|
|
|
python -m pip install --upgrade pip
|
2022-01-31 09:03:26 +00:00
|
|
|
pip install -r requirements.txt
|
|
|
|
pip install flake8 flake8-print flake8-quotes
|
|
|
|
- name: Check for showstoppers
|
2022-01-31 08:52:15 +00:00
|
|
|
run: |
|
2022-01-31 09:03:26 +00:00
|
|
|
flake8 . --count --select=E999 --show-source --statistics
|
|
|
|
shellcheck:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Check for install script errors
|
|
|
|
uses: ludeeus/action-shellcheck@0.1.0
|