Skip to content

Recommend installation with pipx rather than pip #723

Recommend installation with pipx rather than pip

Recommend installation with pipx rather than pip #723

Workflow file for this run

########[CI PIPELINE FLOW]########
# Run pre-commit: #
# | failure ~> stop. #
# | pass: #
# Run tests: #
# | failure ~> stop. #
# | pass: #
# Upload coverage. #
##################################
# Requiered Github secrets: #
# - CODECOV_TOKEN #
##################################
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
pre-commit:
name: Pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: pre-commit/[email protected]
test:
name: Test
needs: pre-commit
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m poetry install --no-root
- name: Test with pytest by poetry
run: |
python -m poetry run pytest tests/ .github/ -vv --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: ${{ matrix.os }}, ${{ matrix.python-version }}