From 572d373914dfa2933ad9746ba8f12863789d8bf5 Mon Sep 17 00:00:00 2001 From: Matthew Upson Date: Sat, 15 Jul 2023 13:57:23 +0200 Subject: [PATCH] chg: Update workflow --- .github/workflows/tests.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..84911f7 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,27 @@ +name: Python CI + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + Run-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ${{ env.HOME }}/.cache/pypoetry + key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} + - name: Install library + run: | + pip install poetry + poetry install + - name: Run tests and coverage + run: | + poetry run pytest