From e39ba8e3de241e4fa28bc946c7f904daef097d0e Mon Sep 17 00:00:00 2001 From: Anne Schuth Date: Tue, 11 Feb 2025 09:26:34 +0100 Subject: [PATCH] Add CI step (#15) * add ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/behave-tests.yml | 31 ++++++++++++++++++++++++++++++ script/test | 1 + 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/behave-tests.yml create mode 100755 script/test diff --git a/.github/workflows/behave-tests.yml b/.github/workflows/behave-tests.yml new file mode 100644 index 0000000..8669889 --- /dev/null +++ b/.github/workflows/behave-tests.yml @@ -0,0 +1,31 @@ +name: Run Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install uv + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + echo "$HOME/.uv/bin" >> $GITHUB_PATH + + - name: Install dependencies + run: | + uv sync + + - name: Run tests + run: ./script/test diff --git a/script/test b/script/test new file mode 100755 index 0000000..8cebfbf --- /dev/null +++ b/script/test @@ -0,0 +1 @@ +uv run behave features