Skip to content

WIP: Remove Godot from the stack #36

WIP: Remove Godot from the stack

WIP: Remove Godot from the stack #36

Workflow file for this run

name: Tests
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- uses: actions/cache@v1
id: cache
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-${{ hashFiles('**/requirements.txt') }}-pip-cache
restore-keys: |
${{ runner.os }}-pip-cache
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r tests/requirements.txt flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 crawlai --count --ignore=W191,E101,E126,E128,W503 --max-complexity=10 --max-line-length=80 --statistics
- name: Test with pytest
run: PYTHONPATH=. pytest tests/