From 4992819e0e9b91eeb36c6b02afc350e8a7316a4b Mon Sep 17 00:00:00 2001 From: erikatsay Date: Fri, 19 Apr 2024 16:31:32 -0700 Subject: [PATCH] Add new workflow. --- .github/workflows/pull-request-tests.yml | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/pull-request-tests.yml diff --git a/.github/workflows/pull-request-tests.yml b/.github/workflows/pull-request-tests.yml new file mode 100644 index 0000000..de44ed3 --- /dev/null +++ b/.github/workflows/pull-request-tests.yml @@ -0,0 +1,35 @@ +name: "Run tests on pr" + +run-name: ${{ github.actor }} has create a pull request 💻 + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + + - name: Install poetry + run: pip3 install poetry + + - name: Install dependencies + run: poetry install + + - name: Test with pytest + run: make test + \ No newline at end of file