fix #2
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-CD | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.13] # Specify the Python versions you want to test | |
steps: | |
# Checkout code | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
# Set up Python environment | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Install dependencies | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install uv | |
uv sync --extra dev | |
# Run tests | |
- name: Run tests with pytest | |
run: | | |
uv run pytest . | |
# Check code formatting | |
- name: Check code formatting | |
run: | | |
uv run ruff format --check . |