Skip to content

Commit

Permalink
Merge pull request #19 from tsalo/add-maint
Browse files Browse the repository at this point in the history
Add CI maintenance scripts
  • Loading branch information
effigies authored May 7, 2024
2 parents b8e66fd + ddddccb commit b227029
Show file tree
Hide file tree
Showing 19 changed files with 268 additions and 542 deletions.
69 changes: 0 additions & 69 deletions .github/workflows/pre-release.yml

This file was deleted.

49 changes: 24 additions & 25 deletions .github/workflows/stable.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
name: Stable tests
name: Tests

on:
push:
branches:
- main
- maint/*
- next
pull_request:
branches:
- main
- maint/*
- next
# Allow job to be triggered manually from GitHub interface
workflow_dispatch:

defaults:
run:
shell: bash

# Force tox and pytest to use color
env:
FORCE_COLOR: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -31,42 +35,37 @@ jobs:
matrix:
os: ['ubuntu-latest']
python-version: ['3.10', '3.11', '3.12']
install: ['pip']
check: ['tests']
pip-flags: ['']
dependencies: ['full', 'pre']
include:
- os: ubuntu-latest
python-version: '3.10'
dependencies: 'min'

env:
INSTALL_TYPE: ${{ matrix.install }}
CHECK_TYPE: ${{ matrix.check }}
EXTRA_PIP_FLAGS: ${{ matrix.pip-flags }}
OS_TYPE: ${{ matrix.os }}
DEPENDS: ${{ matrix.dependencies }}

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install dependencies
run: .maint/ci/install_dependencies.sh
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Create virtual environment
run: .maint/ci/create_venv.sh
- name: Build archive
- name: Install tox
run: |
source .maint/ci/build_archive.sh
echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV
- name: Install fMRIPost-AROMA
run: .maint/ci/install.sh
- name: Install extras
run: .maint/ci/install_extras.sh
- name: Run tests
run: .maint/ci/check.sh
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Show tox config
run: tox c
- name: Run tox
run: tox -v --exit-and-dump-after 1200
- uses: codecov/codecov-action@v4
if: ${{ always() }}
with:
file: coverage.xml
files: cov.xml
token: ${{ secrets.CODECOV_TOKEN }}
if: ${{ always() }}
Loading

0 comments on commit b227029

Please sign in to comment.