-
-
Notifications
You must be signed in to change notification settings - Fork 211
52 lines (49 loc) · 1.16 KB
/
build.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
41
42
43
44
45
46
47
48
49
50
51
52
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
jobs:
build:
name: Test on ${{ matrix.os }}, py-${{ matrix.python_version }}
runs-on: ${{ matrix.os }}
env:
RELEASE: false
strategy:
matrix:
os: [ubuntu-latest]
python_version: ['3.10']
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install poetry
run: |
pip install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
cache: 'poetry'
- name: Install dependencies
run: |
make build
poetry run playwright install
- name: Run tests
env:
TERM: xterm
run: |
make test SLOW=true
- name: Typecheck
run: |
make typecheck
- name: Check for lint
run: |
make lint
- name: Report coverage
run: |
# Allow failing, since sometimes codecov is grumpy and we just get "no healthy upstream"
bash <(curl -s https://codecov.io/bash) || true