[pre-commit.ci] pre-commit autoupdate #438
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Systemtests | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [next, qa, main] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
- name: Setup libmamba solver | |
run: | | |
conda install -n base conda-libmamba-solver | |
conda config --set solver libmamba | |
- name: Install requirements | |
run: | | |
# --quiet should turn off progress bars to make logs more readable | |
conda env create --file conda_environment.yml --quiet | |
conda activate webmon | |
conda env update --file conda_development.yml --quiet | |
- name: Build wheels | |
run: | | |
conda activate webmon | |
make wheel/dasmon wheel/webmon wheel/workflow | |
- name: Build test data for autoreducer | |
run: make SNSdata.tar.gz | |
- name: Stand up docker containers | |
run: docker-compose up --build -d | |
env: | |
DJANGO_SETTINGS_MODULE: reporting.reporting_app.settings.envtest | |
LDAP_SERVER_URI: . | |
LDAP_DOMAIN_COMPONENT: . | |
- name: Wait for everything to start up | |
run: sleep 66 | |
- name: Test with pytest | |
run: | | |
conda activate webmon | |
python -m pytest tests | |
env: | |
DJANGO_SETTINGS_MODULE: reporting.reporting_app.settings.envtest | |
LDAP_SERVER_URI: . | |
LDAP_DOMAIN_COMPONENT: . | |
- name: Stand down docker containers | |
run: docker-compose down |