Skip to content

Commit

Permalink
Merge pull request #7 from sensein/dev
Browse files Browse the repository at this point in the history
testing PR
  • Loading branch information
fabiocat93 authored Sep 18, 2024
2 parents c5a8b67 + 2d4fc8c commit bdb7e38
Showing 3 changed files with 25 additions and 9 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/macos_tests.yaml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 9 additions & 3 deletions .github/workflows/ubuntu_tests_310.yaml
Original file line number Diff line number Diff line change
@@ -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:
12 changes: 9 additions & 3 deletions .github/workflows/ubuntu_tests_311.yaml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit bdb7e38

Please sign in to comment.