diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index b3511d304..8b9b9382b 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 68cbe2a91..0ac2b2522 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ include = ["rich/py.typed"] [tool.poetry.dependencies] python = "^3.6" typing-extensions = {version = "^3.7.4", python = "<3.8"} -dataclasses = {version=">=0.7,<0.9", python = "~3.6"} +dataclasses = {version=">=0.7,<0.9", python = "~3.6"} pygments = "^2.6.0" commonmark = "^0.9.0" colorama = "^0.4.0"