Skip to content

feat: apply Github Action #4

feat: apply Github Action

feat: apply Github Action #4

Workflow file for this run

name: Unit Tests
on:
push:
branches: [master]
pull_request:
jobs:
test-on-linux:
runs-on: ubuntu-latest
strategy:
matrix:
py-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
name: Linux - Python ${{ matrix.py-version }}
steps:
- uses: actions/checkout@v4
- uses: docker/setup-compose-action@v1
- name: Run tests in Docker
run: |
make test ${{ matrix.py-version}}
test-on-windows:
runs-on: windows-latest
strategy:
matrix:
py-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
name: Windows - Python ${{ matrix.py-version }}
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1 # Setup Visual Studio Developer Command Prompt
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py-version }}
- name: Install dependencies
shell: powershell
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
- name: Run tests
shell: powershell
run: |
pytest tests