diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 00000000..f5624415 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,32 @@ +--- +name: Check Pull Request + +on: + pull_request: + branches: + - develop + - master + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ^3.8.5 + + - name: Checkout + uses: actions/checkout@v4 + + - name: Install poetry + run: pip3 install poetry + + - name: Run poetry lock + run: poetry lock --no-update + + - name: Install dependencies + run: poetry export --dev -f requirements.txt | pip3 install -r /dev/stdin + + - name: Run Unit Tests + run: make unit-tests unit-tests-coverage diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 015551bc..1e5db8a0 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -1,11 +1,9 @@ --- -name: Testing +name: Run Unit & Integration tests on: - pull_request: - branches: - - develop - - master + workflow_dispatch: + inputs: jobs: tests: @@ -23,7 +21,7 @@ jobs: run: pip3 install poetry - name: Run poetry lock - run: poetry lock --no-update + run: poetry lock --no-update - name: Install dependencies run: poetry export --dev -f requirements.txt | pip3 install -r /dev/stdin