Skip to content

Expressions

Expressions #9

Workflow file for this run

name: Run static checks and unit tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
pip install -r dev-requirements.txt
- name: Static type checking with mypy
run: mypy --show-error-codes src test
- name: Lint with pylint
run: pylint test/test_trnsys_dck_parser src/trnsys_dck_parser setup.py
- name: Test with pytest
run: pytest test --cov=src --cov-report=html:test-results/coverage --cov-report=term --html=test-results/report/report.html
- name: Upload test results and coverage reports
uses: actions/upload-artifact@v2
with:
name: test-results-and-coverage-report
path: test-results
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}