Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Server: Parallelize unit tests stage
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Apr 30, 2021
1 parent 713afac commit cb5194c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 122 deletions.
115 changes: 0 additions & 115 deletions .github/workflows/backup-repository-release-workflow.yml

This file was deleted.

30 changes: 23 additions & 7 deletions .github/workflows/backup-repository-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- primary

jobs:
"unit_test":
"unit_test_server":
runs-on: ubuntu-20.04
steps:
- name: "Checkout"
Expand Down Expand Up @@ -50,11 +50,6 @@ jobs:
if: ${{ always() }}
working-directory: "server"

- name: "Bahub client: Unit tests"
run: "rkd :test:unit"
if: ${{ always() }}
working-directory: "bahub"

# —— Reports ———————————————————————————————————————————————————————
- name: Archive server unit tests results as annotations
uses: EnricoMi/publish-unit-test-result-action@v1
Expand Down Expand Up @@ -101,8 +96,29 @@ jobs:
name: api-documentation.swagger.json
path: server/swagger.json

"unit_test_bahub":
runs-on: ubuntu-20.04
steps:
- name: "Checkout"
uses: actions/checkout@v1

# —— Dependencies and environment ————————————————————————————————————
- name: "Install CI OS dependencies"
run: "sudo apt-get update; sudo apt-get install libssl-dev libcurl4-openssl-dev python-dev"

- name: "Install project dependencies"
run: "sudo pip install -r ./requirements-dev.txt -r ./bahub/requirements.txt -r ./docs/requirements.txt"

- name: "Run containers required for tests"
run: "rkd :bahub:env:adapters :server:env:db"

- name: "Bahub client: Unit tests"
run: "rkd :test:unit"
if: ${{ always() }}
working-directory: "bahub"

"release_dev_dockers":
needs: unit_test
needs: ["unit_test_server", "unit_test_bahub"]
runs-on: ubuntu-20.04
steps:
- name: "Checkout"
Expand Down

0 comments on commit cb5194c

Please sign in to comment.