Skip to content

add build documentation workflow #37

add build documentation workflow

add build documentation workflow #37

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: [3.8]
os: [self-hosted]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Create and start a virtual environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install dependencies
run: |
source venv/bin/activate
python -m pip install --upgrade pip
pip install .[testing]
- name: Test with Pytest
run: |
source venv/bin/activate
pytest -s tests/
- name: Cleanup
run: |
rm -rf venv