Skip to content

TEMP: disable other CIs #886

TEMP: disable other CIs

TEMP: disable other CIs #886

Workflow file for this run

name: Test on macOS
on:
- pull_request
- push
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
test:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
install_scenario:
- brew
- snapshot
steps:
- name: Set up environment
run: |
brew install exempi
git config --global user.email "[email protected]"
git config --global user.name "GitHub Almighty"
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install git-annex
run: |
pip install datalad-installer
datalad-installer --sudo ok -E new.env git-annex -m ${{ matrix.install_scenario }}
. new.env
echo "PATH=$PATH" >> "$GITHUB_ENV"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coverage
- name: WTF!?
run: |
datalad wtf
- name: Run tests
run: |
mkdir -p __testhome__
cd __testhome__
python -m pytest -c ../tox.ini -s -v --cov=datalad --cov-report=xml --pyargs datalad.core datalad.support
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v5
with:
file: __testhome__/coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}