mirror of https://github.com/Textualize/rich.git
43 lines
1.1 KiB
YAML
43 lines
1.1 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.6, 3.7, 3.8]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements-dev.txt
|
|
poetry install
|
|
- name: Format check with black
|
|
run: |
|
|
make format
|
|
- name: Typecheck with mypy
|
|
run: |
|
|
make typecheck
|
|
- name: Test with pytest
|
|
run: |
|
|
pip install .
|
|
python -m pytest tests -v --cov=./rich --cov-report=xml:./coverage.xml --cov-report term-missing
|
|
|
|
- name: Upload code coverage
|
|
uses: codecov/codecov-action@v1.0.10
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
file: ./coverage.xml
|
|
name: rich
|
|
flags: unittests
|
|
env_vars: OS,PYTHON
|