diff --git a/.github/workflows/macos_tests.yaml b/.github/workflows/macos_tests.yaml index f615942..f9d8630 100644 --- a/.github/workflows/macos_tests.yaml +++ b/.github/workflows/macos_tests.yaml @@ -1,7 +1,7 @@ name: macOS-tests on: - workflow_dispatch: + pull_request: jobs: macos-tests: @@ -32,5 +32,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 9a6554b..34c7b6c 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: @@ -82,12 +82,18 @@ 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 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..2e7af45 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: @@ -82,12 +82,18 @@ 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 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: