From bf01c497c6fa478778e3b50d0ce6ca38c3dbd489 Mon Sep 17 00:00:00 2001 From: Mike Swiss Date: Wed, 19 Jun 2024 21:03:11 -0400 Subject: [PATCH 1/2] pr workflow --- .github/workflows/pytest.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 2b2095a..9014dbf 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -1,6 +1,8 @@ name: Pytest -on: [push, pull_request] +on: + pull_request: + types: [opened, edited, synchronize, reopened, ready_for_review] jobs: build: From 4f24e8d7a366f900715d2a09463f9475a41842e4 Mon Sep 17 00:00:00 2001 From: Mike Swiss Date: Wed, 19 Jun 2024 21:07:37 -0400 Subject: [PATCH 2/2] pr workflow --- .github/workflows/pytest.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 9014dbf..99bf499 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -24,4 +24,8 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test with pytest run: | - python -m pytest -v + make test + - name: build and publish to pipi + run: | + poetry publish --build -r testspypi +