Upload test results as artifact in case of failure

This commit is contained in:
Nicola Soranzo
2021-01-02 03:37:43 +00:00
parent c97b6d76d2
commit 313625ed47
6 changed files with 88 additions and 73 deletions
+1 -1
View File
@@ -36,5 +36,5 @@ jobs:
- uses: actions/upload-artifact@v2
if: failure()
with:
name: API test results
name: API test results (${{ matrix.python-version }})
path: 'galaxy root/run_api_tests.html'
+2 -2
View File
@@ -1,4 +1,4 @@
name: API tests (legacy paste)
name: API (legacy paste) tests
on: [push, pull_request]
env:
GALAXY_TEST_DBURI: 'postgres://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
@@ -37,5 +37,5 @@ jobs:
- uses: actions/upload-artifact@v2
if: failure()
with:
name: API test results
name: API (legacy paste) test results (${{ matrix.python-version }})
path: 'galaxy root/run_api_tests.html'
+41 -36
View File
@@ -25,39 +25,44 @@ jobs:
ports:
- 5672:5672
steps:
- name: Prune unused docker image, volumes and containers
run: docker system prune -a -f
- name: Clean dotnet folder for space
if: matrix.subset == 'kubernetes'
run: rm -Rf /usr/share/dotnet
- name: Setup Minikube
if: matrix.subset == 'kubernetes'
id: minikube
uses: CodingNagger/minikube-setup-action@v1.0.3
with:
minikube-version: "1.9.0-0_amd64"
- name: Launch Minikube
if: matrix.subset == 'kubernetes'
run: eval ${{ steps.minikube.outputs.launcher }}
- name: Check pods
if: matrix.subset == 'kubernetes'
run: |
kubectl get pods
- uses: actions/checkout@v2
with:
path: 'galaxy root'
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dir
uses: actions/cache@v1
id: pip-cache
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
- name: Install ffmpeg
run: sudo apt-get update && sudo apt-get install ffmpeg -y
if: matrix.subset == 'upload_datatype'
- name: Run tests
run: './run_tests.sh -integration test/integration -- -k "${{ matrix.subset }}"'
working-directory: 'galaxy root'
- name: Prune unused docker image, volumes and containers
run: docker system prune -a -f
- name: Clean dotnet folder for space
if: matrix.subset == 'kubernetes'
run: rm -Rf /usr/share/dotnet
- name: Setup Minikube
if: matrix.subset == 'kubernetes'
id: minikube
uses: CodingNagger/minikube-setup-action@v1.0.3
with:
minikube-version: "1.9.0-0_amd64"
- name: Launch Minikube
if: matrix.subset == 'kubernetes'
run: eval ${{ steps.minikube.outputs.launcher }}
- name: Check pods
if: matrix.subset == 'kubernetes'
run: |
kubectl get pods
- uses: actions/checkout@v2
with:
path: 'galaxy root'
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dir
uses: actions/cache@v1
id: pip-cache
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
- name: Install ffmpeg
run: sudo apt-get update && sudo apt-get install ffmpeg -y
if: matrix.subset == 'upload_datatype'
- name: Run tests
run: './run_tests.sh -integration test/integration -- -k "${{ matrix.subset }}"'
working-directory: 'galaxy root'
- uses: actions/upload-artifact@v2
if: failure()
with:
name: Integration test results (${{ matrix.python-version }}, ${{ matrix.subset }})
path: 'galaxy root/run_integration_tests.html'
+22 -17
View File
@@ -26,20 +26,25 @@ jobs:
ports:
- 4444:4444
steps:
- name: Prune unused docker image, volumes and containers
run: docker system prune -a -f
- uses: actions/checkout@v2
with:
path: 'galaxy root'
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dir
uses: actions/cache@v1
id: pip-cache
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
- name: Run tests
run: './run_tests.sh -integration test/integration_selenium'
working-directory: 'galaxy root'
- name: Prune unused docker image, volumes and containers
run: docker system prune -a -f
- uses: actions/checkout@v2
with:
path: 'galaxy root'
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dir
uses: actions/cache@v1
id: pip-cache
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
- name: Run tests
run: './run_tests.sh -integration test/integration_selenium'
working-directory: 'galaxy root'
- uses: actions/upload-artifact@v2
if: failure()
with:
name: Integration Selenium test results (${{ matrix.python-version }})
path: 'galaxy root/run_integration_tests.html'
+1 -1
View File
@@ -41,5 +41,5 @@ jobs:
- uses: actions/upload-artifact@v2
if: failure()
with:
name: Selenium test results
name: Selenium test results (${{ matrix.python-version }}, ${{ matrix.chunk }})
path: 'galaxy root/database/test_errors'
+21 -16
View File
@@ -1,4 +1,4 @@
name: Toolshed
name: Toolshed tests
on: [push, pull_request]
env:
GALAXY_TEST_DBURI: 'postgres://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
@@ -20,18 +20,23 @@ jobs:
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
with:
path: 'galaxy root'
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dir
uses: actions/cache@v1
id: pip-cache
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
- name: Run tests
run: './run_tests.sh -toolshed'
working-directory: 'galaxy root'
- uses: actions/checkout@v2
with:
path: 'galaxy root'
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dir
uses: actions/cache@v1
id: pip-cache
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
- name: Run tests
run: './run_tests.sh -toolshed'
working-directory: 'galaxy root'
- uses: actions/upload-artifact@v2
if: failure()
with:
name: Toolshed test results (${{ matrix.python-version }})
path: 'galaxy root/run_toolshed_tests.html'