Single-task POYO #107
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: 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/ |