Skip to content

Commit

Permalink
Fix environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Nov 3, 2020
1 parent b8c38da commit e0e2ce4
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,44 +46,45 @@ jobs:
- name: Install Packages
run: |
if [[ "${{ env.FULL_DEPS }}" ]]; then
if [[ "${{ matrix.env.FULL_DEPS }}" ]]; then
conda install "pandas<1.1.0"
fi
if [[ "${{ env.JOB }}" == "UNITTEST" ]]; then
if [[ "${{ matrix.env.JOB }}" == "UNITTEST" ]]; then
conda install pytest-cov
elif [[ "${{ env.JOB }}" == "DOCS" ]]; then
elif [[ "${{ matrix.env.JOB }}" == "DOCS" ]]; then
pip install sphinx
python setup.py install
elif [[ "${{ env.JOB }}" == "LINT" ]]; then
elif [[ "${{ matrix.env.JOB }}" == "LINT" ]]; then
pip install flake8
fi
pip list
- name: Run Tests
run: |
if [[ "${{ env.JOB }}" == "UNITTEST" ]]; then
if [[ "${{ matrix.env.JOB }}" == "UNITTEST" ]]; then
coverage erase
make test
elif [[ "${{ env.JOB }}" == "DOCS" ]]; then
elif [[ "${{ matrix.env.JOB }}" == "DOCS" ]]; then
pushd doc
sphinx-build -W -b html -d _build/doctrees . _build/html
popd
elif [[ "${{ env.JOB }}" == "LINT" ]]; then
elif [[ "${{ matrix.env.JOB }}" == "LINT" ]]; then
pip install flake8
make lint
fi
- name: Success
if: ${{ success() }}
run: |
if [[ "${{ env.JOB }}" == "UNITTEST" ]]; then
if [[ "${{ matrix.env.JOB }}" == "UNITTEST" ]]; then
coveralls --rcfile=.coveragerc
fi
- name: Failure
if: ${{ failure() }}
run: |
if [[ "${{ env.JOB }}" == "DOCS" ]]; then
if [[ "${{ matrix.env.JOB }}" == "DOCS" ]]; then
cat /tmp/sphinx-err-*.log
fi

0 comments on commit e0e2ce4

Please sign in to comment.