From 78c13d2174215c7042a3c713835843666d5e5d8a Mon Sep 17 00:00:00 2001 From: Mic Neale Date: Sat, 24 Aug 2024 17:01:35 +1000 Subject: [PATCH 1/2] adding ci workflow --- .github/workflows/ci.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..b8a42fb5 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install UV + run: curl -LsSf https://astral.sh/uv/install.sh | sh + + - name: Source Cargo Environment + run: source $HOME/.cargo/env + + - name: Run tests + run: | + uv run pytest tests -m 'not integration' \ No newline at end of file From 06dd45bcdf1328099f2f3a92556fe152c33981f3 Mon Sep 17 00:00:00 2001 From: Mic Neale Date: Sat, 24 Aug 2024 17:02:52 +1000 Subject: [PATCH 2/2] trigger on PRs --- .github/workflows/ci.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b8a42fb5..ef5afb99 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,8 +1,6 @@ name: CI on: - push: - branches: [main] pull_request: branches: [main]