mirror of
https://github.com/Textualize/rich.git
synced 2025-12-23 07:08:35 +00:00
Add Python 3.10-beta.1 to test matrix
This commit is contained in:
parent
ce4f18cc47
commit
fcefee541f
2 changed files with 13 additions and 9 deletions
20
.github/workflows/pythonpackage.yml
vendored
20
.github/workflows/pythonpackage.yml
vendored
|
|
@ -8,7 +8,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
||||
python-version: ["3.6", "3.7", "3.8", "3.9"]
|
||||
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10.0-beta.1"]
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
|
@ -20,21 +20,25 @@ jobs:
|
|||
python-version: ${{ matrix.python-version }}
|
||||
architecture: x64
|
||||
- name: Install and configure Poetry
|
||||
uses: snok/install-poetry@v1.1.1
|
||||
uses: snok/install-poetry@v1.1.6
|
||||
with:
|
||||
version: 1.1.4
|
||||
virtualenvs-create: false
|
||||
version: 1.1.6
|
||||
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: make format-check
|
||||
run: |
|
||||
source $VENV
|
||||
make format-check
|
||||
- name: Typecheck with mypy
|
||||
run: make typecheck
|
||||
run: |
|
||||
source $VENV
|
||||
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
|
||||
source $VENV
|
||||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue