From 7374b29a50b3e44c0d7876b6e86064e34475f6b9 Mon Sep 17 00:00:00 2001 From: MilesCranmer Date: Sat, 18 May 2024 19:02:48 -0500 Subject: [PATCH] add CI testing --- .github/workflows/CI.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..bb70b14 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + pull_request: + +jobs: + test: + runs-on: ${{ matrix.os }} + timeout-minutes: 60 + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + python-version: + - '3.12' + - '3.8' + + steps: + - uses: actions/checkout@v4 + - name: "Set up Python" + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: pip + - name: "Install spock" + run: | + python -m pip install --upgrade pip + pip install .[test] + - name: "Run tests" + run: python -m unittest discover + continue-on-error: true + # TODO: fix tests