-
Notifications
You must be signed in to change notification settings - Fork 42
47 lines (45 loc) · 1.15 KB
/
python_test.yml
File metadata and controls
47 lines (45 loc) · 1.15 KB
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
name: Python Build
on:
push:
paths:
- 'python/**'
- 'src/**'
- '.github/workflows/python_test.yml'
- "!python/.gitignore"
- "!python/pytest/**"
pull_request:
paths:
- 'python/**'
- 'src/**'
- '.github/workflows/python_test.yml'
- "!python/.gitignore"
- "!python/pytest/**"
workflow_dispatch:
jobs:
Install-Test:
name: Installation test for python
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python --version
pip install --upgrade pip setuptools "packaging>=22"
pip install pybind11[global]
- name: Install abess
run: |
cd ./python
pip install . -v
- name: A simple test
run: |
echo "import abess; print(abess.__version__);" > ./test.py
python ./test.py