Skip to content

Bump mypy from 1.17.0 to 1.17.1 #33

Bump mypy from 1.17.0 to 1.17.1

Bump mypy from 1.17.0 to 1.17.1 #33

Workflow file for this run

---
name: Run tests
on: # yamllint disable-line rule:truthy
push: null
pull_request: null
permissions: {}
jobs:
tests:
name: Execute tests
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.11", "3.12"]
permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
# Do not put it into dev env, it is just CI requirements
pip install coveralls
- name: Test with pytest
run: |
pytest ./tests --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
- name: Upload coverage data to coveralls.io
run: coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
COVERALLS_PARALLEL: true
coveralls:
name: Indicate completion to coveralls.io
needs: tests
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Install coveralls
run: pip3 install --upgrade coveralls
- name: Finished
run: coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}