Skip to content

feat: Adding setup script #9

feat: Adding setup script

feat: Adding setup script #9

Workflow file for this run

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