Skip to content

test notebook

test notebook #6

Workflow file for this run

name: Run Tests
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
tests:
runs-on: ubuntu-20.04
strategy:
matrix:
python: ["3.8", "3.9", "3.10"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install GStatSim
run: |
pip install "numpy<=1.23.4"
pip install -e .
pip install pytest pytest-cov
- name: Run tests
run: pytest --cov=gstatsim --cov-report=html
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: ./htmlcov/