Skip to content

Commit

Permalink
CI: don't run GitHub Actions on fork or in cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommers committed Oct 5, 2020
1 parent 02563b2 commit b017a6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bleedingedge.yml
Expand Up @@ -6,8 +6,6 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * *'

jobs:
test_nightly:
Expand All @@ -21,6 +19,7 @@ jobs:
- uses: actions/checkout@v2

- name: Install Python 3.9
if: github.repository == 'scipy/scipy'
if: matrix.python-version == '3.9'
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
Expand All @@ -29,13 +28,16 @@ jobs:
python3.9 -m pip install --upgrade pip setuptools
- name: Install other build dependencies
if: github.repository == 'scipy/scipy'
run: |
sudo apt-get install libatlas-base-dev liblapack-dev gfortran libgmp-dev libmpfr-dev libsuitesparse-dev ccache libmpc-dev
- name: Install packages
if: github.repository == 'scipy/scipy'
run: |
python3.9 -m pip install --user numpy setuptools wheel cython pytest pytest-xdist pybind11 pytest-xdist
- name: Test SciPy
if: github.repository == 'scipy/scipy'
run: |
python3.9 -u runtests.py -m fast
4 changes: 4 additions & 0 deletions .github/workflows/testing.yml
Expand Up @@ -24,11 +24,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
if: github.repository == 'scipy/scipy'
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Setup openblas
if: github.repository == 'scipy/scipy'
run: |
# this setup is originally taken from the .travis.yml
Expand Down Expand Up @@ -83,10 +85,12 @@ jobs:
export PATH="$PATH:$PWD/openblas"
- name: Install packages
if: github.repository == 'scipy/scipy'
run: |
pip install ${{ matrix.numpy-version }}
pip install setuptools wheel cython gmpy2 pytest pytest-xdist pybind11 pytest-xdist mpmath scikit-umfpack scikit-sparse
- name: Test SciPy
if: github.repository == 'scipy/scipy'
run: |
python -u runtests.py

0 comments on commit b017a6b

Please sign in to comment.