-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (57 loc) · 1.86 KB
/
pytest.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
56
57
58
59
60
61
62
name: pytest
# reference:
# https://github.com/pybind/python_example/blob/master/.github/workflows/pip.yml
on: [push]
jobs:
build:
strategy:
max-parallel: 2
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
# platform: [macos-latest]
# platform: [windows-latest, macos-latest]
# platform: [ubuntu-latest, macos-latest]
# python-version: [3.9.5, 3.10.0]
# python-version: [3.9.5]
python-version: [3.9]
# python-version: [3.10.0]
#python-version: [3.9, 3.10]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Run a one-line script
run: echo Hello, world!
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# python -m pip install --user numpy scipy matplotlib pybind11 pytz pyyaml
pip install pytest
cd cli/
pip install -e .
cd ../
# ----------------------------------------
# 2024-12-17 suppress geo/ for now - start
# cd geo/
# pip install -e .[dev]
# cd ../
# 2024-12-17 suppress geo/ for now - stop
# ----------------------------------------
# 2024-12-17 suppress pybind for now - start
# cd geo/src/bind/
# pip install -e .
# cd ../../../
# 2024-12-17 suppress pybind for now - stop
# ----------------------------------------
# - name: Test with unittest
- name: Test with pytest
run: |
# pytest -v # do not test all sibl/
pytest cli -v