Skip to content

Commit

Permalink
Add GitHub CI (fix #16)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrthomas committed Nov 23, 2024
1 parent 5dcff38 commit fe1370f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on: [ push, pull_request ]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies (Ubuntu)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get -y install python3
- name: Install dependencies (macOS)
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install tox
# Prepend optional brew binary directories to PATH
echo "$(brew --prefix)/opt/python/libexec/bin" >> $GITHUB_PATH
- name: Build
run: |
if [ "$RUNNER_OS" = "macOS" ]; then
tox -e py311,py312
else
pip install tox
tox
fi

0 comments on commit fe1370f

Please sign in to comment.