Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TillerBurr committed Nov 1, 2023
1 parent b2c2c36 commit 7c88117
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Tests
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rye
uses: eifinger/setup-rye@v1
with:
enable-cache: true
- name: Install Dependencies
run: rye sync
- name: Lint
run: rye run ruff .
- name: Format
run: rye run ruff format .

tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10","3.11","3.12"]
steps:
- uses: actions/checkout@v3
- name: Install rye
uses: eifinger/setup-rye@v1
with:
enable-cache: true
- name: Install Dependencies
run: rye sync
- name: Test
run: rye run pytest
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ dev-dependencies = [
"types-PyYAML>=6.0.12.12",
"types-Markdown>=3.5.0.0",
"pytest-cov>=4.1.0",
"ruff>=0.1.3",
]

[tool.hatch.metadata]
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pyyaml==6.0.1
pyyaml-env-tag==0.1
regex==2023.10.3
requests==2.31.0
ruff==0.1.3
six==1.16.0
types-markdown==3.5.0.0
types-pyyaml==6.0.12.12
Expand Down

0 comments on commit 7c88117

Please sign in to comment.