Skip to content

Added an example on how to reuse the project name to make it easier t… #158

Added an example on how to reuse the project name to make it easier t…

Added an example on how to reuse the project name to make it easier t… #158

Workflow file for this run

---
name: Test Python package
on: [pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
pytest-version: [4, 5, 6, 7, 8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies, pytest ${{ matrix.pytest-version }}
run: |
python -m pip install --upgrade pip setuptools
pip install pytest==${{ matrix.pytest-version }}
pip install ".[tests]"
- name: Build image
run: |
docker compose -f tests/docker-compose.yml pull
docker compose -f tests/docker-compose.yml build
- name: Run tests
run: |
pytest -c setup.cfg
- name: Stop Docker compose
run: |
docker compose -f tests/docker-compose.yml down