From f62e0eb966ff99967ed870126f9ce38cc98e6e19 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 9 Jun 2025 21:19:47 +0200 Subject: [PATCH] Add test workflow --- .../run-async-substrate-interface-tests.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/run-async-substrate-interface-tests.yml diff --git a/.github/workflows/run-async-substrate-interface-tests.yml b/.github/workflows/run-async-substrate-interface-tests.yml new file mode 100644 index 0000000..01e4ce8 --- /dev/null +++ b/.github/workflows/run-async-substrate-interface-tests.yml @@ -0,0 +1,34 @@ +name: Run Unit Tests + +on: + push: + branches: + - main + - staging + pull_request: + branches: + - main + - staging + +jobs: + run-tests: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v4 + with: + python-version: 3.13 + + - name: install dependencies + run: | + uv venv .venv + source .venv/bin/activate + uv pip install .[dev] + + - name: Run pytest + run: | + source .venv/bin/activate + pytest tests