From b54759b02ab3bc608d1c09bddbb21b034f7ca380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Lilleb=C3=B8=20Gundersen?= Date: Sat, 28 Nov 2020 12:32:15 +0000 Subject: [PATCH] Remove dev-requirements.txt --- .github/workflows/pythonpackage.yml | 24 +++-- .idea/workspace.xml | 155 ++++++++++++++++++++++++++++ CONTRIBUTING.md | 12 ++- requirements-dev.txt | 5 - rich/bar.py | 2 +- rich/containers.py | 2 - rich/jupyter.py | 1 - rich/prompt.py | 2 +- 8 files changed, 179 insertions(+), 24 deletions(-) create mode 100644 .idea/workspace.xml delete mode 100644 requirements-dev.txt diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index a4cae13b..ff13bd43 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -6,10 +6,13 @@ jobs: build: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: [windows-latest, ubuntu-latest, macos-latest] python-version: [3.6, 3.7, 3.8, 3.9] - + defaults: + run: + shell: bash steps: - uses: actions/checkout@v1 - name: Set up Python ${{ matrix.python-version }} @@ -17,22 +20,22 @@ jobs: with: python-version: ${{ matrix.python-version }} architecture: x64 + - name: Install and configure Poetry + uses: snok/install-poetry@v1.1.1 + with: + version: 1.1.4 + virtualenvs-create: false - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements-dev.txt - poetry install + run: poetry install + if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - name: Format check with black - run: | - make format-check + run: make format-check - name: Typecheck with mypy - run: | - make typecheck + 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: @@ -41,3 +44,4 @@ jobs: name: rich flags: unittests env_vars: OS,PYTHON + fail_ci_if_error: true diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 00000000..02d20e2e --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,155 @@ + + + + + + + + + + + + + + + + + + + + + + + +