Skip to content

Merge pull request #2 from KlugerLab/doc_workflow #14

Merge pull request #2 from KlugerLab/doc_workflow

Merge pull request #2 from KlugerLab/doc_workflow #14

# See e.g. https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Build and test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
defaults:
run:
shell: bash -l {0}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest tests