-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bd3f9b
commit 074bdac
Showing
2 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Run Tests | ||
on: | ||
workflow_call: | ||
inputs: | ||
python-version: | ||
type: string | ||
runs-on: | ||
type: string | ||
default: "windows-latest" | ||
|
||
|
||
jobs: | ||
tests: | ||
name: Run Tests for python${{ inputs.python-version }} on ${{ inputs.runs-on }} | ||
runs-on: ${{ inputs.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install poetry --upgrade pip | ||
poetry config virtualenvs.create false | ||
poetry install | ||
- name: Install | ||
run: poetry install --with dev | ||
- name: Run Lint and Format | ||
run: | | ||
poetry run ruff check | ||
- name: Run Pytest | ||
run: poetry run pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters