Skip to content

Add resolution_range parameter and update tests in generate_hnet_trai… #39

Add resolution_range parameter and update tests in generate_hnet_trai…

Add resolution_range parameter and update tests in generate_hnet_trai… #39

Workflow file for this run

name: Python package
on: [push, pull_request]
jobs:
test:
name: Test on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.12] # Specify the Python versions you want to test
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true # Enable Git LFS
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install pytest pytest-cov pytest-mock
- name: Modify PYTHONPATH
run: |
echo "PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}" >> $GITHUB_ENV
- name: Run consistency tests
run: |
pytest -m consistency
env:
CI: true
# - name: Run nonregression tests
# run: |
# pytest -m nonregression
# env:
# CI: true
- name: Upload Coverage Report as Artifact
uses: actions/upload-artifact@v4
with:
name: coverage-report-html
path: htmlcov/