Load test for writing observations into the datastore #22
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: pytest | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_run: | |
workflows: ["flake8"] | |
branches: ["main"] | |
types: | |
- completed | |
jobs: | |
ingest-pyTestCov: | |
strategy: | |
matrix: | |
python-version: ["3.10"] # Add 3.11 back pybind11 bug is fixed | |
runs-on: ubuntu-latest | |
steps: | |
- name: Ubuntu setup | |
run: sudo apt update && sudo apt install libeccodes-data rapidjson-dev pybind11-dev libssl-dev | |
- name: Python Setup | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Checkout Source | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: | | |
pip install --upgrade pip | |
pip install pytest-timeout | |
pip install pytest-cov | |
pip install ./ingest | |
- name: Run Tests | |
run: python -m pytest -v --timeout=60 ./ingest |