-
Notifications
You must be signed in to change notification settings - Fork 47
55 lines (53 loc) · 1.32 KB
/
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: CI
on:
push:
branches:
- main
- 'v[0-9]*'
pull_request:
jobs:
test:
strategy:
matrix:
platform: [ubuntu-20.04, macos-latest]
python-version: ['3.8', '3.11']
# Python 3.8 is only used for Pyston on Linux x86_64
exclude:
- platform: macos-latest
python-version: '3.8'
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- name: Setup poetry
run: python3 -m pip install poetry
- name: Install dependencies
run: python3 -m poetry install
- name: Run tests
run: make test
testPackage:
strategy:
matrix:
platform: [ubuntu-20.04, macos-latest]
python-version: ['3.11']
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- name: Setup poetry
run: python3 -m pip install poetry
- name: Install dependencies
run: python3 -m poetry install
- name: Build package
id: build_package
run: make package