Skip to content

fix a new bug in feb29() #49

fix a new bug in feb29()

fix a new bug in feb29() #49

Workflow file for this run

name: xmhw-conda-install-test
#on: [push]
on:
push:
branches:
- master
- timestep
pull_request:
branches:
- master
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file conda/environment.yml --name base
- name: Lint with flake8
run: |
conda install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# - name: Install package
# run: |
# conda run python setup.py install
- name: Test with pytest
run: |
conda install pytest coverage codecov
conda run python -m pytest
conda run coverage run --source xmhw -m py.test
- name: Upload to codecov
if: steps.build.outcome == 'success'
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov
# codeclimate-test-reporter specifi to python is deprecated and as been replaced by a binary
# curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter