forked from datalad/datalad
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (53 loc) · 1.5 KB
/
test_macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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@v4
with:
file: __testhome__/coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}