From 1cb4958ff6e2bc166172086e1eab92b5471a0242 Mon Sep 17 00:00:00 2001 From: Joshua Hamilton Date: Tue, 10 Sep 2024 20:39:05 -0500 Subject: [PATCH] add github action to automate tests (#139) --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..623c54b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: Test Python + +on: [push, pull_request] + +jobs: + test: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install . + pip install pytest + - name: Test with pytest + run: | + pytest \ No newline at end of file