Add read the docs config file #63
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: Build and test | |
on: [push, pull_request] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Setup RabbitMQ | |
uses: nijel/[email protected] | |
with: | |
rabbitmq version: 3.8.9 | |
- name: Install code | |
run: | | |
pip install .[testing,pre-commit] | |
- name: Test code | |
run: | | |
pytest -s . | |
pre-commit: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Setup RabbitMQ | |
uses: nijel/[email protected] | |
with: | |
rabbitmq version: 3.8.9 | |
- name: Install code | |
run: | | |
pip install .[pre-commit] | |
- name: Run pre-commit | |
run: | | |
pre-commit install | |
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 ) |