Also update certifi in pyproject.toml #76
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: CI | |
on: [push, pull_request] | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.10", "3.11"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install poetry | |
run: | | |
python -m pip install poetry==1.3.2 | |
- name: Set Poetry config | |
run: | | |
python -m poetry config virtualenvs.in-project true | |
- name: Cache Poetry virtualenv | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: ./.venv | |
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}-${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m poetry install | |
if: steps.cache.outputs.cache-hit != 'true' | |
- name: Test with pytest | |
run: python -m poetry run pytest --cov -n 2 --cov-report xml --cov-report term-missing | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
env_vars: PYTHON |