Skip to content

Load Test

Load Test #2

Workflow file for this run

name: Load Test
on:
workflow_dispatch:
jobs:
load-test:
name: H2.0 Load Test
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Run Load Test
env:
SRC_TITLE: 'Load Test: EPA ScienceHub'
SRC_URL: 'https://pasteur.epa.gov/metadata.json'
SRC_OWNER_ORG: 'b9bfa457-9f66-4aab-861a-ceac5b53ad6d'
SRC_SOURCE_TYPE: 'datajson'
CKAN_URL: ${{secrets.CKAN_URL_STAGING}}
CKAN_API_TOKEN: ${{secrets.CKAN_API_TOKEN_STAGING}}
run: |
source .venv/bin/activate
poetry run python scripts/load_test.py