Skip to content

Commit

Permalink
environment file is an argument to goanpeca/setup-miniconda@v1
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Apr 11, 2020
1 parent 18bbf5d commit b31156d
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/continuous-integration-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,27 @@ jobs:
uses: goanpeca/setup-miniconda@v1
with:
auto-update-conda: true
auto-activate-base: false
miniconda-version: 'latest'
python-version: ${{ matrix.python-version }}
environment-file: environment.yml
activate-environment: jupytext-dev
- name: Debug
run: |
# Show path and content
pwd
ls
- name: Create conda env
run: conda env create --file environment.yml
- name: Conda activate
run: conda activate jupytext-dev
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
all Python files should follow PEP8 (except some notebooks, see setup.cfg)
flake8 jupytext tests
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --statistics
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
all Python files should follow PEP8 (except some notebooks, see setup.cfg)
flake8 jupytext tests
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --statistics
- name: Install from source (required for the pre-commit tests)
run: pip install .
- name: Test with pytest
run: |
coverage run --source=. -m py.test
run: coverage run --source=. -m py.test
- name: Upload coverage
run: |
coverage report -m
run: coverage report -m

0 comments on commit b31156d

Please sign in to comment.