fix context mask x2 #346
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: ci | |
on: [push] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Load cached virtual environment | |
id: cached-venv | |
uses: actions/cache@v2 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Install dependencies | |
if: steps.cached-venv.output.cache-hit != 'true' | |
run: poetry install --no-interaction --no-root | |
- name: Run tests | |
run: | | |
source .venv/bin/activate | |
python3 -m pytest tests | |
- name: Build documentation | |
run: | | |
source .venv/bin/activate | |
cd docs | |
make html | |
touch _build/html/.nojekyll | |
- name: Deploy documentation | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: "docs/_build/html" |