[pre-commit.ci] pre-commit autoupdate #223
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
name: Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: poetry | |
- name: setup | |
run: poetry install --no-interaction --no-ansi --with tests | |
- run: poetry run coverage run -m unittest | |
env: | |
PYTHONWARNINGS: error | |
- run: poetry run python -m pip install "git+https://github.com/${GITHUB_REPOSITORY}.git#egg=nmdmail" | |
- name: gather XML coverage data | |
run: poetry run coverage xml | |
- uses: codecov/codecov-action@v3 |