Skip to content

Add SSDraw related files #6

Add SSDraw related files

Add SSDraw related files #6

name: Test Python Package
on:
push:
branches: [ "main" ]
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Install testing tools and the black formatter
python -m pip install pytest black
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# Install the package itself in editable mode
python -m pip install -e .
- name: Format code with black (Check only)
run: |
black . --check
- name: Test with pytest
run: |
pytest