From 74dd9a297558c435892a3e64b7d6ee19c087e312 Mon Sep 17 00:00:00 2001 From: levisingularity Date: Fri, 12 Jan 2024 14:21:29 -0300 Subject: [PATCH 1/3] ci: testing src on PR --- .github/workflows/testing.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/testing.yml diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml new file mode 100644 index 00000000..5df6dce7 --- /dev/null +++ b/.github/workflows/testing.yml @@ -0,0 +1,32 @@ +--- +name: Testing + +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: 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 + + - name: + run: make integration-tests From c85fe8f26b0e5b5bd23eac8aa2c486a3886b6dc0 Mon Sep 17 00:00:00 2001 From: levisingularity Date: Fri, 12 Jan 2024 14:23:21 -0300 Subject: [PATCH 2/3] ci: set name step for integration test --- .github/workflows/testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 5df6dce7..7bc133c2 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -28,5 +28,5 @@ jobs: - name: Run Unit Tests run: make unit-tests unit-tests-coverage - - name: + - name: Run Integration Tests run: make integration-tests From d514d4b5e99f1ef2b4b4f4202f024174deb0b59d Mon Sep 17 00:00:00 2001 From: levisingularity Date: Fri, 12 Jan 2024 16:26:25 -0300 Subject: [PATCH 3/3] ci: run poetry lock step --- .github/workflows/testing.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 7bc133c2..015551bc 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -22,6 +22,9 @@ jobs: - 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