Readme Updated #23
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, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.12.2' | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install flake8 | |
- name: Lint with flake8 | |
run: | | |
flake8 src test --count --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 src test --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml | |
flags: unittests | |
name: codecov-umbrella | |
- name: Run Codacy Analysis | |
uses: codacy/codacy-analysis-cli-action@v4 | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} |