generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 916 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Testing Code Examples
on: push
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install deps
uses: knowsuchagency/poetry-install@v1
env:
POETRY_VIRTUALENVS_CREATE: false
- name: Run black check
run: poetry run black --check .
pytest:
runs-on: ubuntu-latest
environment: unify-docs-testing
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install Dependencies
uses: knowsuchagency/poetry-install@v1
env:
POETRY_VIRTUALENVS_CREATE: false
- name: Run Tests
run: poetry run pytest -vv --cov="unify-docs" -n 4 .
env:
UNIFY_KEY: ${{ secrets.AUTH_ACCOUNT_API_KEY }}