From d2dfc8925f8517ea2d9c7656d0f7b1221b6a4981 Mon Sep 17 00:00:00 2001 From: fabiocat93 Date: Wed, 18 Sep 2024 09:02:07 +0200 Subject: [PATCH 1/6] testing PR --- .github/workflows/ubuntu_tests_310.yaml | 6 +++--- .github/workflows/ubuntu_tests_311.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ubuntu_tests_310.yaml b/.github/workflows/ubuntu_tests_310.yaml index 9a6554b..9a77e8f 100644 --- a/.github/workflows/ubuntu_tests_310.yaml +++ b/.github/workflows/ubuntu_tests_310.yaml @@ -32,8 +32,8 @@ jobs: subnet-id: ${{ vars.AWS_SUBNET }} security-group-id: ${{ vars.AWS_SECURITY_GROUP }} - ubuntu-tests: - name: ubuntu-tests + ubuntu-tests-310: + name: ubuntu-tests-310 needs: start-runner runs-on: ${{ needs.start-runner.outputs.label }} strategy: @@ -87,7 +87,7 @@ jobs: name: stop-runner needs: - start-runner # waits for the EC2 instance to be created - - ubuntu-tests # waits for the actual job to finish + - ubuntu-tests-310 # waits for the actual job to finish runs-on: ubuntu-latest if: ${{ always() }} # required to stop the runner even if an error occurred in previous jobs steps: diff --git a/.github/workflows/ubuntu_tests_311.yaml b/.github/workflows/ubuntu_tests_311.yaml index 0a65f88..69e01e9 100644 --- a/.github/workflows/ubuntu_tests_311.yaml +++ b/.github/workflows/ubuntu_tests_311.yaml @@ -32,8 +32,8 @@ jobs: subnet-id: ${{ vars.AWS_SUBNET }} security-group-id: ${{ vars.AWS_SECURITY_GROUP }} - ubuntu-tests: - name: ubuntu-tests + ubuntu-tests-311: + name: ubuntu-tests-311 needs: start-runner runs-on: ${{ needs.start-runner.outputs.label }} strategy: @@ -87,7 +87,7 @@ jobs: name: stop-runner needs: - start-runner # waits for the EC2 instance to be created - - ubuntu-tests # waits for the actual job to finish + - ubuntu-tests-311 # waits for the actual job to finish runs-on: ubuntu-latest if: ${{ always() }} # required to stop the runner even if an error occurred in previous jobs steps: From 1108d9212eda8cef918889789ebc1eec3f78bfa6 Mon Sep 17 00:00:00 2001 From: fabiocat93 Date: Wed, 18 Sep 2024 09:12:18 +0200 Subject: [PATCH 2/6] playing with PR --- .github/workflows/macos_tests.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/macos_tests.yaml b/.github/workflows/macos_tests.yaml index f615942..925eff3 100644 --- a/.github/workflows/macos_tests.yaml +++ b/.github/workflows/macos_tests.yaml @@ -1,10 +1,16 @@ name: macOS-tests on: + pull_request: + branches: + - main + types: + - labeled workflow_dispatch: jobs: macos-tests: + if: contains(github.event.pull_request.labels.*.name, 'release') name: macOS-tests runs-on: ${{ matrix.os }} strategy: From cc0144912b4c3ec3c9356ed9070c29d9076bedcb Mon Sep 17 00:00:00 2001 From: fabiocat93 Date: Wed, 18 Sep 2024 09:23:19 +0200 Subject: [PATCH 3/6] playing with PR #2 --- .github/workflows/macos_tests.yaml | 8 ++++++-- .github/workflows/ubuntu_tests_310.yaml | 6 ++++++ .github/workflows/ubuntu_tests_311.yaml | 6 ++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/macos_tests.yaml b/.github/workflows/macos_tests.yaml index 925eff3..65a5a46 100644 --- a/.github/workflows/macos_tests.yaml +++ b/.github/workflows/macos_tests.yaml @@ -38,5 +38,9 @@ jobs: shell: bash - name: Run unit tests run: poetry run pytest - - + - name: Upload Test Results + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-results + path: ./test-results diff --git a/.github/workflows/ubuntu_tests_310.yaml b/.github/workflows/ubuntu_tests_310.yaml index 9a77e8f..34c7b6c 100644 --- a/.github/workflows/ubuntu_tests_310.yaml +++ b/.github/workflows/ubuntu_tests_310.yaml @@ -82,6 +82,12 @@ jobs: run: | poetry env remove ${{ matrix.python-version }} shell: bash + - name: Upload Test Results + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-results + path: ./test-results stop-runner: name: stop-runner diff --git a/.github/workflows/ubuntu_tests_311.yaml b/.github/workflows/ubuntu_tests_311.yaml index 69e01e9..2e7af45 100644 --- a/.github/workflows/ubuntu_tests_311.yaml +++ b/.github/workflows/ubuntu_tests_311.yaml @@ -82,6 +82,12 @@ jobs: run: | poetry env remove ${{ matrix.python-version }} shell: bash + - name: Upload Test Results + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-results + path: ./test-results stop-runner: name: stop-runner From 8926730ed0bc2f45209b36bad1cf9bf7f1a0d888 Mon Sep 17 00:00:00 2001 From: fabiocat93 Date: Wed, 18 Sep 2024 09:27:07 +0200 Subject: [PATCH 4/6] playing with PR #3 --- .github/workflows/macos_tests.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/macos_tests.yaml b/.github/workflows/macos_tests.yaml index 65a5a46..f9d8630 100644 --- a/.github/workflows/macos_tests.yaml +++ b/.github/workflows/macos_tests.yaml @@ -2,15 +2,9 @@ name: macOS-tests on: pull_request: - branches: - - main - types: - - labeled - workflow_dispatch: jobs: macos-tests: - if: contains(github.event.pull_request.labels.*.name, 'release') name: macOS-tests runs-on: ${{ matrix.os }} strategy: From 223a0a51beb541d955e6c8616e822d7896b6f60d Mon Sep 17 00:00:00 2001 From: fabiocat93 Date: Wed, 18 Sep 2024 09:41:13 +0200 Subject: [PATCH 5/6] playing with PR #4 --- .github/workflows/ubuntu_tests_check.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/ubuntu_tests_check.yaml diff --git a/.github/workflows/ubuntu_tests_check.yaml b/.github/workflows/ubuntu_tests_check.yaml new file mode 100644 index 0000000..8676619 --- /dev/null +++ b/.github/workflows/ubuntu_tests_check.yaml @@ -0,0 +1,14 @@ +name: ubuntu-tests-check + +on: + workflow_run: + workflows: ["ubuntu-tests-python-3.10", "ubuntu-tests-python-3.11"] + types: + - success + +jobs: + start-runner: + runs-on: ubuntu-latest + steps: + - name: Both workflows passed + run: echo "Both ubuntu-tests-python-3.10 and ubuntu-tests-python-3.11 passed successfully." From 2d4fc8c8ddcf4aab1ac774cb6d441ea3308efea2 Mon Sep 17 00:00:00 2001 From: fabiocat93 Date: Wed, 18 Sep 2024 09:50:40 +0200 Subject: [PATCH 6/6] playing with PR #5 --- .github/workflows/ubuntu_tests_check.yaml | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 .github/workflows/ubuntu_tests_check.yaml diff --git a/.github/workflows/ubuntu_tests_check.yaml b/.github/workflows/ubuntu_tests_check.yaml deleted file mode 100644 index 8676619..0000000 --- a/.github/workflows/ubuntu_tests_check.yaml +++ /dev/null @@ -1,14 +0,0 @@ -name: ubuntu-tests-check - -on: - workflow_run: - workflows: ["ubuntu-tests-python-3.10", "ubuntu-tests-python-3.11"] - types: - - success - -jobs: - start-runner: - runs-on: ubuntu-latest - steps: - - name: Both workflows passed - run: echo "Both ubuntu-tests-python-3.10 and ubuntu-tests-python-3.11 passed successfully."