-
Notifications
You must be signed in to change notification settings - Fork 41
45 lines (43 loc) · 1.06 KB
/
python_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
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:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8]
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python --version
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