Skip to content

Commit

Permalink
Add integration tests to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rosswhitfield committed Nov 30, 2023
1 parent 1b6041c commit ed648c8
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 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 Down Expand Up @@ -34,6 +32,36 @@ jobs:
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 tests/integration/docker-compose.yml up --build -d

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

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

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

rpm:
runs-on: ubuntu-latest

Expand Down

0 comments on commit ed648c8

Please sign in to comment.