Skip to content

Commit

Permalink
Simplify actions
Browse files Browse the repository at this point in the history
Signed-off-by: martinRenou <[email protected]>
  • Loading branch information
martinRenou committed Jun 2, 2020
1 parent 0ecb418 commit 4df5ce3
Showing 1 changed file with 9 additions and 25 deletions.
34 changes: 9 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,47 +23,31 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Add conda to $PATH
run: echo ::add-path::$CONDA/condabin
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
conda-channels: conda-forge

- 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: Install mamba
run: conda install mamba

- 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 }}
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
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
run: |
source "$CONDA/etc/profile.d/conda.sh"
conda activate voila-tests
python -m flake8 voila tests setup.py
- name: Run tests
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`

0 comments on commit 4df5ce3

Please sign in to comment.