verify-exercise #272
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- "README.md" | |
- "docs/**" | |
pull_request: | |
branches: [main] | |
paths-ignore: | |
- "README.md" | |
- "docs/**" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies for requirements and testing | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi | |
- name: Lint with pylint | |
run: | | |
pylint src | |
- name: Test with pytest | |
run: | | |
pytest --cov src tests/ |