Skip to content

Feature/merge dist files #21

Feature/merge dist files

Feature/merge dist files #21

Workflow file for this run

name: Python Tests
on:
push:
branches:
- main
- develop # Or your primary development branch
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"] # Specify python versions
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
# Alternatively, if not using Poetry, or have a requirements.txt:
# run: pip install -r requirements.txt
- name: Install dependencies
run: poetry install --no-interaction --no-root
# If you have dev dependencies for pytest, e.g. in a [tool.poetry.group.dev.dependencies]
# run: poetry install --no-interaction --no-root --with dev
# Or if using pip with requirements.txt:
# run: pip install -r requirements-dev.txt # (if you have a separate dev requirements)
# run: pip install pytest # or ensure pytest is in your main requirements
- name: Run tests with pytest
run: poetry run pytest tests/
# Or if not using poetry:
# run: pytest tests/