Skip to content

Commit

Permalink
Use matrix (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
sciyoshi authored Jan 23, 2023
1 parent fd8ffd5 commit 8b0ee00
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,33 @@ on:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11

python-version: ${{ matrix.python-version }}
- name: cache poetry install
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-0

- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true

- name: cache deps
id: cache-deps
uses: actions/cache@v3
with:
path: .venv
key: pydeps-${{ hashFiles('**/poetry.lock') }}

- run: poetry install --no-interaction --no-root
if: steps.cache-deps.outputs.cache-hit != 'true'

- run: poetry install --no-interaction

- run: poetry run pytest
- run: poetry run pytest --cov=./prosemirror/
- run: poetry run black --check prosemirror tests
- run: poetry run ruff prosemirror tests
- run: poetry run ruff prosemirror tests
- run: poetry run codecov

0 comments on commit 8b0ee00

Please sign in to comment.