Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rosswhitfield committed Nov 29, 2023
1 parent fe7caa0 commit 50b00ef
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: CI
on:
pull_request:
push:
branches: main
tags: ['v*']
workflow_dispatch:


Expand All @@ -27,13 +25,43 @@ jobs:

- name: Unit test with code coverage
shell: bash -l {0}
run: python -m pytest -vv --cov=postprocessing --cov=scripts --cov-report=xml --cov-report=term
run: python -m pytest -vv --cov=postprocessing --cov=scripts --cov-report=xml --cov-report=term --ignore tests/integration

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

integration-tests:
runs-on: ubuntu-latest
needs: tests
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up MicroMamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
condarc: |
channels:
- conda-forge
- default
cache-environment: true

- name: start docker containers
run: docker-compose -f docker-compose-integration-tests.yml up --build -d

- name: sleep to wait for containers to start up
run: sleep 5

- name: Run integration tests
shell: bash -l {0}
run: python -m pytest tests/integration

- name: stop docker containers
run: docker-compose -f docker-compose-integration-tests.yml down

rpm:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 50b00ef

Please sign in to comment.