-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.23 KB
/
testing.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
name: Testing
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "*" ]
permissions:
contents: read
jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Setup virtual environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install brainsets
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
python -m pip install --no-user --upgrade pip
pip install --no-user "brainsets @ git+https://github.com/neuro-galaxy/brainsets.git@main#egg=brainsets-0.1.0[all]"
- name: Install dependencies
run: |
source venv/bin/activate
python -m pip install --upgrade pip
pip install -e ".[dev]"
pip install flake8 pytest
- name: Install plugin
run: |
source venv/bin/activate
pip install pytest-github-actions-annotate-failures
- name: Test with pytest
run: |
source venv/bin/activate
export WANDB_MODE=dryrun
pytest tests/