Skip to content

🔨 refactor: transform library into a thecodecrate-pipeline p… #12

🔨 refactor: transform library into a thecodecrate-pipeline p…

🔨 refactor: transform library into a thecodecrate-pipeline p… #12

Workflow file for this run

name: Run Tests
on: ['pull_request']
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
python-version: ['3.9', '3.10', '3.11'] # Wrapped versions in quotes
name: Python ${{ matrix.python-version }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f pyproject.toml ]; then pip install .[dev]; fi
- name: Run tests
run: |
pytest --cov # Run pytest with coverage if needed