Skip to content

Commit

Permalink
first attempt at an actions workflow to do the integration testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
LAShemilt committed Apr 21, 2023
1 parent 4a1c2c4 commit ae97b0b
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/integration-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Integration tests V4

on:
pull_request:
master

jobs:
runner_job:
runs_on: ubuntu-latest

services:
mongo:
image: scimongo
ports: 27107:27107
scicat-backend:
image: ghcr/scicat-project/backend-next
ports: 3000:3000
environmentVariables:
MONGODB_URI: mongodb://mongo:27017/scicat
EXPRESS_SESSION_SECRET: "${EXPRESS_SESSION_SECRET}"
JWT_SECRET: "${JWT_SECRET}"
PORT: 3000
HTTP_MAX_REDIRECTS: 5
HTTP_TIMEOUT: 5000
JWT_EXPIRES_IN: 3600
SITE: SAMPLE-SITE
PID_PREFIX: PID.SAMPLE.PREFIX
DOI_PREFIX: DOI.SAMPLE.PREFIX
METADATA_KEYS_RETURN_LIMIT: 100
METADATA_PARENT_INSTANCES_RETURN_LIMIT: 100
ADMIN_GROUPS: admin,ingestor

build:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install
shell: bash -l {0}
run: source continuous_integration/scripts/install.sh

- name: Install test requirements
shell: bash -l {0}
run: |
set -vxeuo pipefail
python -m pip install -r requirements-dev.txt
python -m pip list
- name: Lint with flake8
shell: bash -l {0}
run: |
set -vxeuo pipefail
python -m flake8
- name: Test with pytest
shell: bash -l {0}
run: |
set -vxeuo pipefail
coverage run -m pytest -k tests_integration -v
coverage report

0 comments on commit ae97b0b

Please sign in to comment.