From d4626d83d9a0c270b3ce66c205749ffad6d73713 Mon Sep 17 00:00:00 2001 From: Calum Macdonald Date: Tue, 26 Sep 2023 11:17:02 +0100 Subject: [PATCH] add a workflow ci --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..fc845f7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: Pytest + +on: [push] +# push: +# branches: +# - main # Modify this branch name as needed +# pull_request: +# branches: +# - main # Modify this branch name as needed + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - name: Install dependencies + run: | + pip install -r requirements.txt + + - name: Run pytest + run: | + cd hdr_schemata/tests/ + pytest