forked from nilearn/nilearn
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.48 KB
/
testing_install.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
---
name: test installation
on:
push:
branches:
- main
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test_install:
if: github.repository == 'nilearn/nilearn'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.8']
name: ${{ matrix.os }} with Python ${{ matrix.python-version }} and latest package versions
defaults:
run:
shell: bash
steps:
- name: Checkout nilearn
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies for building Nilearn
shell: bash {0}
run: |
set -e
python -m pip install --upgrade pip
pip install --prefer-binary build
- name: Build Nilearn
shell: bash {0}
run: |
set -e
python -m build
- name: Install Nilearn from wheel & check installation
shell: bash {0}
run: |
set -e
pip install dist/nilearn-*-py3-none-any.whl
python -c "import nilearn"