mirror of
https://github.com/Textualize/rich.git
synced 2025-12-23 07:08:35 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
name: Test Rich module
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
|
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11.0", "3.12.0-rc.3"]
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
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 and configure Poetry
|
|
# TODO: workaround for https://github.com/snok/install-poetry/issues/94
|
|
uses: snok/install-poetry@v1.3.3
|
|
with:
|
|
version: 1.3.1
|
|
virtualenvs-in-project: true
|
|
- name: Install dependencies
|
|
run: poetry install
|
|
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
|
|
- name: Format check with black
|
|
run: |
|
|
source $VENV
|
|
make format-check
|
|
- name: Typecheck with mypy
|
|
run: |
|
|
source $VENV
|
|
make typecheck
|
|
- name: Test with pytest (with coverage)
|
|
run: |
|
|
source $VENV
|
|
pytest tests -v --cov=./rich --cov-report=xml:./coverage.xml --cov-report term-missing
|
|
- name: Upload code coverage
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
file: ./coverage.xml
|
|
name: rich
|
|
flags: unittests
|
|
env_vars: OS,PYTHON
|