Skip to content

docs(readme): fix indentation and add DeepWiki badge #816

docs(readme): fix indentation and add DeepWiki badge

docs(readme): fix indentation and add DeepWiki badge #816

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.9.12", "3.10", "3.11", "3.12", "3.13" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2
- uses: actions/cache@v4
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: poetry install
- name: Lint with flake8
run: make lint
- name: Test with pytest
run: |
make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: ragnarok22/cryptobot_python