-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (46 loc) · 1.3 KB
/
test.yaml
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
41
42
43
44
45
46
47
48
49
name: CI
on: [workflow_dispatch, pull_request, push]
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
jobs:
mypy_static_analysis:
runs-on: ubuntu-latest
steps:
- uses: airtai/workflows/airt-mypy-check@main
bandit_static_analysis:
runs-on: ubuntu-latest
steps:
- uses: airtai/workflows/airt-bandit-check@main
semgrep_static_analysis:
runs-on: ubuntu-latest
steps:
- uses: airtai/workflows/airt-semgrep-check@main
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos]
version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: ${{ matrix.os }}-latest
steps:
- name: Install quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Install playwright
run: |
pip3 install playwright
playwright install chromium
- uses: fastai/workflows/nbdev-ci@master
with:
version: ${{ matrix.version }}
- name: test build docs
run: |
test -f setup.py && pip install -e ".[dev]"
nbdev_mkdocs docs
if [ -f "mkdocs/site/index.html" ]; then
echo "docs built successfully."
else
echo "index page not found in rendered docs."
ls -la
ls -la mkdocs/site/
exit 1
fi