-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (47 loc) · 1.33 KB
/
build-and-test.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
53
54
55
name: Build and test
on: [pull_request]
jobs:
Windows_pip:
runs-on: windows-latest
timeout-minutes: 60
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install pyopia
run: pip install -e ".[classification]"
- name: Test
run: python -m pytest -v
Ubuntu_poetry:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Install dependencies
run: poetry install --extras "classification"
- name: Run the automated tests
run: poetry run pytest -v
MacOS_poetry:
runs-on: macos-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Install dependencies
run: poetry install --extras "classification-arm64"
- name: Run the automated tests
run: poetry run pytest -v