-
Notifications
You must be signed in to change notification settings - Fork 147
46 lines (43 loc) · 1.3 KB
/
ci.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
name: Run Tests and other CI Steps
on:
- push
- pull_request
jobs:
lints-ci:
#The lint jobs don't need to run on other OS's or python versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# install poetry first for cache
- name: setup poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: 3.11
cache: "poetry"
- name: Poetry install
run: poetry install
- name: run lint checks
run: poetry run black --check alpaca/ tests/
- name: build doc html to lint for errors
run: ./tools/scripts/generate-docs.sh
tests-ci:
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11" ] #we'll want to add other versions down the road
os: [ ubuntu-latest ] #in the future we should add windows here
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# install poetry first for cache
- name: setup poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Poetry install
run: poetry install
- name: run tests
run: poetry run pytest