Merge branch 'main' into dependabot/pip/dnspython-2.6.1 #156
Workflow file for this run
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] | |
jobs: | |
linting: | |
env: | |
POETRY_VERSION: 1.5.1 | |
PYTHON_VERSION: 3.11 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ env.PYTHON_VERSION }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: setup poetry | |
run: | | |
pip install poetry==${{ env.POETRY_VERSION }} | |
poetry config virtualenvs.create false | |
poetry install --no-interaction --no-ansi | |
- name: run precommit hooks | |
run: | | |
poetry run pre-commit run --all-files | |
tests: | |
env: | |
POETRY_VERSION: 1.5.1 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: setup poetry | |
run: | | |
pip install poetry==${{ env.POETRY_VERSION }} | |
poetry config virtualenvs.create false | |
poetry install --no-interaction --no-ansi | |
- name: Configure git user for git unit tests | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
- name: Unit tests + coverage report | |
run: | | |
poetry run python --version | |
poetry run pytest -vv --cov=./ --cov-report=xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |