Skip to content

Commit

Permalink
Add basic CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fcooper8472 committed Aug 22, 2024
1 parent 30f5107 commit 62492a0
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "Test package"

on:
push:
branches:
- main
pull_request:
branches:
- '**'

jobs:
build-and-test:
name: Tests example and packaging
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: "ubuntu-24.04"
python: "3.10"
deps: "sudo apt update && sudo apt install -y ghostscript imagemagick"
- os: "macos-14"
python: "3.11"
deps: "brew install ghostscript imagemagick"
- os: "windows-2022"
python: "3.12"
deps: "choco install ghostscript imagemagick -y"

steps:
- name: checkout repo
uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: install python package
run: |
pip install --upgrade pip setuptools wheel
pip install .[dev]
- name: run pytest
run: |
pytest

0 comments on commit 62492a0

Please sign in to comment.