Skip to content

cosmetic changes (#269) #749

cosmetic changes (#269)

cosmetic changes (#269) #749

Workflow file for this run

name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Cache pip dependencies
id: cache
uses: actions/cache@v1
env:
cache-name: cache-python-dependencies
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install wheel
pip install flake8
pip install pytest-cov
pip install -r requirements.txt
pip install -e parsley
find sinks/ sources/ tools/ -name requirements.txt -type f -exec pip install -r {} \;
- name: Lint with flake8
shell: bash
run: |
# stop the build if there are Python syntax errors or undefined names
# error codes shown by `--select` can be found
# here (F): https://flake8.pycqa.org/en/latest/user/error-codes.html
# and here (E): https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
# flake8 config can be found in setup.cfg
flake8
- name: Test with pytest
shell: bash
run: |
pytest
- name: Enforce autopep8
shell: bash
run: |
autopep8 -d -r sources/ sinks/ omnibus/ tools/ *.py --exit-code