From 89695aad71d16fb35a2e9a6fe9eeea5e7656db8f Mon Sep 17 00:00:00 2001 From: Daniel Himmelstein Date: Sun, 27 Oct 2024 09:25:35 -0400 Subject: [PATCH] github actions tests --- .github/workflows/tests.yaml | 17 +++++++++++++++++ README.md | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000000..5e8f3b972f --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,17 @@ +name: Tests +on: +- push +- pull_request +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - uses: pre-commit/action@v3.0.1 + - uses: snok/install-poetry@v1 + - run: poetry install --ansi --no-interaction + shell: bash + - run: poetry run pytest --color=yes diff --git a/README.md b/README.md index 8030bf721f..e787574899 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Ski Run Bearings / Trail Orientation / Aspect +[![Test Suite CI Status](https://github.com/dhimmel/ski-bearing-stats/actions/workflows/tests.yaml/badge.svg?branch=main&event=push)](https://github.com/dhimmel/ski-bearing-stats/actions/workflows/tests.yaml) + WIP Ski Roses ## Development