feat: Adding setup script #9
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: pull_request | |
jobs: | |
CI: | |
name: π CI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
- name: π¦ Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ruff pytest | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: π§ͺ Test with pytest | |
run: | | |
pytest | |
coverage run --source=src -m pytest -v __tests__/ && coverage report -m | |
env: | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
SENTRY_ENVIRONMENT: ${{ secrets.SENTRY_ENVIRONMENT }} | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
# - name: Lint with flake8 | |
# run: | | |
# flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics | |
# flake8 src --count --max-complexity=10 --max-line-length=79 --statistics | |
# - name: Lint with Pylint | |
# run: | | |
# pylint src |