-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
temporarily run a very small CI config
- Loading branch information
Showing
1 changed file
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,36 +75,36 @@ jobs: | |
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
if: matrix.test_env == 'python' && matrix.os == 'ubuntu-latest' | ||
run: poetry run pytest --doctest-modules -v -m 'not dymola' --cov-report term-missing --cov . ./tests | ||
- name: Run Pytest (no compilation or simulation) | ||
if: matrix.test_env == 'python' && matrix.os == 'windows-latest' | ||
run: poetry run pytest --doctest-modules -v -m 'not simulation and not compilation and not dymola' ./tests | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files | ||
- name: Run mypy | ||
if: matrix.test_env =='mypy' | ||
run: poetry run mypy --install-types --non-interactive --show-error-codes . | ||
- name: Build docs | ||
if: matrix.test_env == 'docs' | ||
run: | | ||
cd docs | ||
poetry run make html | ||
- name: Coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
if: ${{ matrix.os == 'ubuntu-latest' && matrix.test_env == 'python' }} | ||
run: | | ||
poetry run coveralls | ||
- name: Job Failed | ||
if: ${{ failure() }} | ||
run: | | ||
echo "Maybe these logs will help?" | ||
ls -alt $GITHUB_WORKSPACE | ||
find $GITHUB_WORKSPACE -type f -name 'stdout.log' -print | while read filename; do | ||
echo "============================================ stdout.log =========================================" | ||
echo "$filename" | ||
cat "$filename" | ||
done | ||
run: poetry run pytest tests/model_connectors/test_district_single_ghe.py --doctest-modules -v -m 'not dymola' --cov-report term-missing --cov . ./tests | ||
# - name: Run Pytest (no compilation or simulation) | ||
# if: matrix.test_env == 'python' && matrix.os == 'windows-latest' | ||
# run: poetry run pytest --doctest-modules -v -m 'not simulation and not compilation and not dymola' ./tests | ||
# - name: Run pre-commit | ||
# uses: pre-commit/[email protected] | ||
# with: | ||
# extra_args: --all-files | ||
# - name: Run mypy | ||
# if: matrix.test_env =='mypy' | ||
# run: poetry run mypy --install-types --non-interactive --show-error-codes . | ||
# - name: Build docs | ||
# if: matrix.test_env == 'docs' | ||
# run: | | ||
# cd docs | ||
# poetry run make html | ||
# - name: Coveralls | ||
# env: | ||
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# if: ${{ matrix.os == 'ubuntu-latest' && matrix.test_env == 'python' }} | ||
# run: | | ||
# poetry run coveralls | ||
# - name: Job Failed | ||
# if: ${{ failure() }} | ||
# run: | | ||
# echo "Maybe these logs will help?" | ||
# ls -alt $GITHUB_WORKSPACE | ||
# find $GITHUB_WORKSPACE -type f -name 'stdout.log' -print | while read filename; do | ||
# echo "============================================ stdout.log =========================================" | ||
# echo "$filename" | ||
# cat "$filename" | ||
# done |