From 7d7b22717af7c5838f53e83e3210a04fb9806c81 Mon Sep 17 00:00:00 2001 From: Alexander van der Grinten Date: Mon, 28 Oct 2024 22:25:41 +0100 Subject: [PATCH] workflows: Add CI workflow --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..f8cc451 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + name: Test y4 + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + - name: Install Python prerequisites + run: | + pip install pytest + - name: Install y4 from checkout + run: | + pip install . + - name: Run y4 pytests + run: | + pytest tests/