-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (48 loc) · 1.46 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
47
48
49
50
51
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 temporaldata
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
python -m pip install --no-user --upgrade pip
pip install --no-user "temporaldata @ git+https://${GITHUB_TOKEN}:[email protected]/neuro-galaxy/temporaldata@main#egg=temporaldata-0.1.1"
- name: Install brainsets
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
python -m pip install --no-user --upgrade pip
pip install --no-user "brainsets @ git+https://${GITHUB_TOKEN}:[email protected]/neuro-galaxy/brainsets@main#egg=brainsets-0.1.0"
- 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/