Update test workflow badge #2
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the code | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# Set up Python | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ vars.PYTHON_VERSION }} | |
# Install dependencies | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r test-requirements.txt | |
# Run Ruff linter and formatter | |
- name: Run Ruff | |
run: | | |
ruff check --fix . | |
ruff format . | |
# Run Black formatter | |
- name: Run Black | |
run: | | |
black . | |
# Run Tests | |
- name: Run Tests | |
run: | | |
pytest |