Skip to content

Commit

Permalink
Run tests on all versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Jan 1, 2024
1 parent 1c71a8c commit a7e32ad
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ jobs:
max-parallel: 4
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
include:
- version: "3.11"
check-formatting: "true"
steps:
- uses: actions/checkout@v3
- name: Set up Python for Poetry
Expand All @@ -37,10 +44,12 @@ jobs:
- name: Install dependencies
run: |
poetry install -n
poetry run pip install flake8 pytest
- name: Install Node.js dependencies
run: |
npm install -g pyright
- name: Code style
if: ${{ matrix.check-formatting }}
run: |
poetry run black --check handsdown --preview
poetry run isort -c handsdown
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/on_push_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
poetry run pytest --cov-report term --cov handsdown
poetry run codecov
poetry run pytest --cov-report xml --cov handsdown
- name: Send coverage report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
17 changes: 1 addition & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ twine = { version = "*", python = ">=3.10" }
pytest = { version = "*", python = ">=3.10" }
pytest-cov = { version = "*", python = ">=3.10" }
vulture = { version = "*", python = ">=3.10" }
codecov = { version = "*", python = ">=3.10" }
rope = "*"
types-setuptools = "*"
mkdocs = "*"
Expand Down

0 comments on commit a7e32ad

Please sign in to comment.