CI refs/heads/KIT-4352 #43
Workflow file for this run
This file contains hidden or 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
| name: ci | |
| run-name: CI ${{ github.ref }} | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| paths-ignore: | |
| - README.md | |
| - LICENSE.txt | |
| - .gitignore | |
| - .vscode/** | |
| - .devcontainer/** | |
| jobs: | |
| build_python: | |
| name: Python | build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.12" | |
| - name: Add linting matchers | |
| run: | | |
| echo "::add-matcher::.github/flake8-error-problem-matcher.json" | |
| echo "::add-matcher::.github/flake8-warning-problem-matcher.json" | |
| echo "::add-matcher::.github/mypy-error-problem-matcher.json" | |
| - name: Lint | |
| uses: py-actions/flake8@v2 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements-dev.txt | |
| - name: Lint typing | |
| # Must run with installed dependencies | |
| run: | | |
| mypy --config-file .mypy.ini --show-column-numbers . | |
| - name: Run tests | |
| run: python -m pytest --cov=sag_py_web_common --cov-report=xml tests | |
| - name: Prepare coverage file | |
| run: coverage-lcov | |
| - name: Coveralls upload | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-lcov: lcov.info |