Merge pull request #142 from lucile-hashimoto/master #36
This file contains hidden or 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 and deploy" | |
| on: | |
| push: | |
| branches: | |
| [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.12 | |
| - name: VirtualEnv | |
| run: | | |
| python -m venv slam-env | |
| source slam-env/bin/activate | |
| - name: Install all the dependencies | |
| run: | | |
| pip install .['doc'] | |
| - name: Run tests with pytest | |
| run: | | |
| pip install pytest pytest-cov coveralls | |
| pytest -W default --cov=slam/ | |
| - name: Build the Doc 🔧 | |
| run: | | |
| cd doc | |
| make clean | |
| make html | |
| touch _build/html/.nojekyll | |
| - name: Deploy Github Pages 🚀 | |
| uses: JamesIves/[email protected] | |
| with: | |
| branch: gh-pages | |
| folder: doc/_build/html/ | |
| clean: true | |
| ssh-key: ${{ secrets.DEPLOY_KEY }} |