-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #861 from neuroscout/github_actions
Switch to Github Actions for CI
- Loading branch information
Showing
4 changed files
with
51 additions
and
48 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Neuroscout tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
name: pytest | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_SETTINGS: neuroscout.config.app.GHIConfig | ||
PYTHONHASHSEED: 0 | ||
services: | ||
postgres: | ||
image: postgres:12 | ||
env: | ||
POSTGRES_PASSWORD: password | ||
POSTGRES_DB: travis_ci_test | ||
ports: | ||
- 5432:5432 | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.6 | ||
- name: Set up system dependencies | ||
run: | | ||
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) | ||
sudo apt-get -qq update | ||
sudo apt-get install -yq git-annex-standalone tesseract-ocr libavformat-dev libavfilter-dev libavdevice-dev ffmpeg | ||
cp neuroscout/config/example_app.py neuroscout/config/app.py | ||
cp neuroscout/frontend/src/config.ts.example neuroscout/frontend/src/config.ts | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ hashFiles('neuroscout/setup.py') }}-${{ hashFiles('neuroscout/requirements.txt') }} | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install -U setuptools==45 pytest-cov | ||
python -m pip install -r neuroscout/requirements.txt | ||
python -m pip install -e git+https://github.com/PsychoinformaticsLab/pliers.git#egg=pliers | ||
python -m pliers.support.download | ||
- name: Test with pytest | ||
run: | | ||
python -m pytest neuroscout/tests/ --cov=./neuroscout --cov-report xml | ||
- uses: codecov/codecov-action@v1 |
This file was deleted.
Oops, something went wrong.
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
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