-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 919 Bytes
/
CI.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
name: CI
on:
push:
branches:
- master
- develop
pull_request:
branches:
- "*"
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11'] # 3.12 not supported yet due to build issues
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
$HOME/.local/bin/poetry install --without dev
- name: Run tests
env:
IAI_API_KEY: ${{ secrets.IAI_API_KEY }}
run: |
$HOME/.local/bin/poetry run pytest tests/