Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify actions and use mamba #573

Merged
merged 1 commit into from
Jun 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 11 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,47 +23,32 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Add conda to $PATH
run: echo ::add-path::$CONDA/condabin

- name: Fix permissions on Mac
if: matrix.os == 'macos-latest'
run: |
sudo chmod -R a+rw /usr/local/miniconda

- name: Update conda
run: |
conda update -y -n base conda setuptools

- name: Init conda
run: |
conda init bash
conda info -a
- name: Setup mamba
uses: goanpeca/setup-miniconda@v1
with:
mamba-version: "*"
channels: conda-forge

- name: Create the conda environment
run: conda create -q -y -n voila-tests -c conda-forge python=$PYTHON_VERSION pip jupyterlab_pygments==0.1.0 pytest-cov nodejs flake8 ipywidgets matplotlib xeus-cling
env:
PYTHON_VERSION: ${{ matrix.python-version }}
shell: bash -l {0}
run: mamba install -q python=${{ matrix.python-version }} pip jupyterlab_pygments==0.1.0 pytest-cov nodejs flake8 ipywidgets matplotlib xeus-cling

- name: Install dependencies
shell: bash -l {0}
run: |
source "$CONDA/etc/profile.d/conda.sh"
conda activate voila-tests
whereis python
python --version

python -m pip install --ignore-installed ".[test]"
python -m pip install ".[test]"
cd tests/test_template; pip install .; cd ../../;

- name: Flake8
shell: bash -l {0}
run: |
source "$CONDA/etc/profile.d/conda.sh"
conda activate voila-tests
python -m flake8 voila tests setup.py

- name: Run tests
shell: bash -l {0}
run: |
source "$CONDA/etc/profile.d/conda.sh"
conda activate voila-tests
VOILA_TEST_DEBUG=1 VOILA_TEST_XEUS_CLING=1 py.test tests/ --async-test-timeout=240
voila --help # Making sure we can run `voila --help`