Skip to content

Merge pull request #1 from RyanAugust/athlete_fix #18

Merge pull request #1 from RyanAugust/athlete_fix

Merge pull request #1 from RyanAugust/athlete_fix #18

name: Lint & Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
linter:
name: linters
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: pip install -e '.[linting,testing]'
- name: Lint with flake8
run: flake8 cheetahpy/ --indent-size=4 --select=F,E112,E113,E203,E304,E502,E702,E703,E71,E72,E731,W191,W6 --statistics -j4
- name: Lint with pylint
run: pylint cheetahpy/ --exit-zero # just return the warnings for now
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install and test
run: |
python -m pip install -U --editable .
python -m pytest tests/