Hdl-TH Integration support #122
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: Test Production Imports | |
on: [push, pull_request] | |
env: | |
DBSERVER: localhost | |
DBUSERNAME: admin | |
DBPASSWORD: password | |
DBNAME: synchrona_test | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements_dev.txt | |
- name: Install telemetry | |
run: | | |
pip install . | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: '5.0' | |
mongodb-username: ${{ env.DBUSERNAME }} | |
mongodb-password: ${{ env.DBPASSWORD }} | |
mongodb-db: sdg | |
- name: Run tests | |
run: python3 -m pytest -v --cov=telemetry tests/test_prod.py |