Merge pull request #1188 from bids-standard/ci/pre-release #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pre-release | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
# 8am EST / 9am EDT Mondays | |
- cron: '0 13 * * 1' | |
# 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 | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Test | |
if: | | |
github.event_name != 'pull_request' | |
|| contains(github.event.pull_request.labels.*.name, 'prerelease') | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ['ubuntu-latest', 'macos-latest'] | |
python-version: ['3.12', '3.13'] | |
fail-fast: false | |
permissions: | |
actions: write | |
env: | |
DEPENDS: pre | |
steps: | |
- uses: actions/checkout@v5 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v7 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install tox | |
run: | | |
uv tool install tox --with=tox-uv --with=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@v5 | |
if: ${{ always() }} | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |