Skip to content

Commit

Permalink
split test functions in gha
Browse files Browse the repository at this point in the history
  • Loading branch information
briehl committed Jun 7, 2021
1 parent e38ffd5 commit b599232
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 8 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI-integration-testing

on:
[push, pull_request]

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2.0.0
with:
miniconda-version: 'latest'
activate-environment: test-environment
python-version: 3.6.10
auto-activate-base: false
auto-update-conda: true
condarc-file: test/condarc.yml

- name: Use Node JS 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Install JS dependencies
run: |
npm ci
npm install bower
./node_modules/bower/bin/bower install
- name: Install Narrative Application
shell: bash -l {0}
run: |
bash ./scripts/install_narrative.sh
npm run minify
sed <src/config.json.templ >src/config.json "s/{{ .Env.CONFIG_ENV }}/dev/"
sed -i 's/{{ if ne .Env.CONFIG_ENV "prod" }} true {{- else }} false {{- end }}/true/' src/config.json
jupyter notebook --version
- name: Run Narrative Frontend Integration Tests
shell: bash -l {0}
env:
KBASE_TEST_TOKEN: ${{ secrets.NARRATIVE_TEST_TOKEN }}
run: make test-integration
10 changes: 2 additions & 8 deletions .github/workflows/test.yml → .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI-testing
name: CI-unit-testing

on:
[push, pull_request]
Expand Down Expand Up @@ -45,19 +45,13 @@ jobs:
shell: bash -l {0}
run: make test-frontend-unit

- name: make test output available as artefact in case of failure
- name: make test output available as artifact in case of failure
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: karma-result.json
path: karma-result.json

- name: Run Narrative Frontend Integration Tests
shell: bash -l {0}
env:
KBASE_TEST_TOKEN: ${{ secrets.NARRATIVE_TEST_TOKEN }}
run: make test-integration

- name: Send to Codecov
uses: codecov/codecov-action@v1
with:
Expand Down

0 comments on commit b599232

Please sign in to comment.