Skip to content

Commit

Permalink
CI: Add a build to test with unreleased pybids
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Sep 8, 2022
1 parent 7757f9f commit 8f1c59f
Showing 1 changed file with 53 additions and 10 deletions.
63 changes: 53 additions & 10 deletions .github/workflows/workflows.yml
Expand Up @@ -17,6 +17,10 @@ env:
IMAGE_NAME: ${{ github.repository }}
INSTALL_TYPE: pip

defaults:
run:
shell: bash -l {0}

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -153,9 +157,6 @@ jobs:
CHECK_TYPE: ${{ matrix.check }}
EXTRA_PIP_FLAGS: ${{ matrix.pip-flags }}
OS_TYPE: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -190,7 +191,55 @@ jobs:
run: tools/ci/install.sh
- name: Run tests
run: tools/ci/check.sh
if: ${{ matrix.check != 'skiptests' }}
- uses: codecov/codecov-action@v3
with:
verbose: true
if: ${{ always() }}

pre-release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
python-version: [3]
pip-flags: ['--pre']
check: ['test']
env:
CHECK_TYPE: ${{ matrix.check }}
EXTRA_PIP_FLAGS: ${{ matrix.pip-flags }}
OS_TYPE: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: fitlins-ci
environment-file: tools/ci/conda_environment.yml
python-version: ${{ matrix.python-version }}
- name: Test conda installation
run: |
conda info
conda list
conda env list
conda config --show-sources
conda config --show
- name: Install dependencies
run: |
conda install -y --channel leej3 "afni-minimal"
conda list | grep afni
- name: Display Python version
run: |
which python
which pip
python -c "import sys; print(sys.version)"
- name: Install fitlins
run: tools/ci/install.sh
- name: Install pybids from GitHub
run: pip install git+https://github.com/bids-standard/pybids.git
- name: Run tests
run: tools/ci/check.sh
- uses: codecov/codecov-action@v3
with:
verbose: true
Expand All @@ -210,9 +259,6 @@ jobs:
CHECK_TYPE: ${{ matrix.check }}
EXTRA_PIP_FLAGS: ${{ matrix.pip-flags }}
OS_TYPE: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -262,9 +308,6 @@ jobs:
CHECK_TYPE: ${{ matrix.check }}
EXTRA_PIP_FLAGS: ${{ matrix.pip-flags }}
OS_TYPE: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 8f1c59f

Please sign in to comment.