Fix up the test by relaxing our assumptions on how many batched proce… #887
This file contains 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: 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.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- 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 }} |