Merge pull request #29 from ALambrianou/current_2 #69
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 | |
# Only run this when the main branch changes | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
# This job installs dependencies, build the book, and pushes it to `gh-pages` | |
jobs: | |
deploy-book: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo and submodules | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
# Install dependencies | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install runtime dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Install test dependencies | |
run: | | |
pip install pytest | |
- name: Run tests | |
run: | | |
pytest . |