Files
AutoGPT/.github/workflows/ci.yml
Drikus Roor 8d0d4135ea ci: Update flake8 command to ignore some issues.
We can later gradually make it stricter until we have no errors anymore.
2023-04-12 22:07:04 +02:00

45 lines
918 B
YAML

name: Python CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
continue-on-error: true
run: flake8 scripts/ tests/ --select E303,W293,W291,W292,E305
- name: Run unittest tests with coverage
run: |
coverage run --source=scripts -m unittest discover tests
- name: Generate coverage report
run: |
coverage report
coverage xml