Skip to content

Commit 7ae1a2f

Browse files
authored
Add new github actions. (#1093)
* Add new github actions. * wip GH action for core * fail-fast: true * oups * oups * fail-fast: true * rm travis * pytest-cov * exclude some versions * oups * oups * some clean * Try to chain workflow core > io/rawio using workflow_run * try again to chain workflows * more try * No succes in chaining workflows. Go back.
1 parent 21c197b commit 7ae1a2f

File tree

3 files changed

+54
-49
lines changed

3 files changed

+54
-49
lines changed

.github/workflows/core-test.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: NeoCoreTest
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
types: [synchronize, opened, reopened, ready_for_review]
7+
8+
# run checks on any change of master, including merge of PRs
9+
push:
10+
branches: [master]
11+
12+
13+
14+
jobs:
15+
multi-os-python-numpy:
16+
runs-on: ${{ matrix.os }}
17+
18+
strategy:
19+
fail-fast: true
20+
matrix:
21+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
22+
python-version: ['3.7', '3.8', '3.9']
23+
numpy-version: ['1.16.6', '1.19.5', '1.20.3', '1.21.5', '1.22.3']
24+
exclude:
25+
- python-version: '3.7'
26+
numpy-version: '1.22.3'
27+
28+
steps:
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v2
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
34+
- name: Checkout repository
35+
uses: actions/checkout@v2
36+
37+
- name: Install numpy ${{ matrix.numpy-version }}
38+
run: |
39+
python -m pip install --upgrade pip
40+
pip install numpy==${{ matrix.numpy-version }}
41+
pip install pytest pytest-cov
42+
pip install .
43+
44+
- name: List pip packages
45+
run: |
46+
pip -V
47+
pip list
48+
49+
- name: Run tests
50+
run: |
51+
pytest --cov=neo neo/test/coretest

.github/workflows/full-test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: neo.io and neo.rawio tests
1+
name: NeoIoTest
22

33
on:
44
pull_request:
@@ -9,12 +9,13 @@ on:
99
push:
1010
branches: [master]
1111

12+
1213
jobs:
1314
build-and-test:
1415
name: Test on (${{ matrix.os }})
1516
runs-on: ${{ matrix.os }}
1617
strategy:
17-
fail-fast: false
18+
fail-fast: true
1819
matrix:
1920
# "macos-latest", "windows-latest"
2021
os: ["ubuntu-latest", ]

.travis.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)