Skip to content

Commit f63397c

Browse files
committed
add fast sniff build
1 parent 86058bd commit f63397c

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

‎.github/workflows/slycot-build-and-test.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,31 @@ on:
1212

1313
jobs:
1414

15+
build-setup:
16+
# Super fast sniff build. If this fails, don't start the other jobs
17+
name: Build setup.py on Ubuntu
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout Slycot
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
24+
- name: Set up Python
25+
uses: actions/setup-python@v2
26+
- name: Setup Ubuntu
27+
run: |
28+
sudo apt-get -y install gfortran cmake --fix-missing
29+
sudo apt-get -y install libblas-dev liblapack-dev
30+
pip install scikit-build numpy scipy pytest
31+
- name: Install Slycot
32+
run: python setup.py install
33+
- name: Run tests
34+
run: pytest
35+
1536
build-pip:
1637
name: Build pip Py${{ matrix.python }}, ${{ matrix.os }}, ${{ matrix.bla_vendor}} BLA_VENDOR
1738
runs-on: ${{ matrix.os }}-latest
39+
needs: build-setup
1840
strategy:
1941
fail-fast: false
2042
matrix:
@@ -100,6 +122,7 @@ jobs:
100122
build-conda:
101123
name: Build conda Py${{ matrix.python }}, ${{ matrix.os }}
102124
runs-on: ${{ matrix.os }}-latest
125+
needs: build-setup
103126
strategy:
104127
fail-fast: false
105128
matrix:

0 commit comments

Comments
 (0)