Skip to content

Commit

Permalink
fix: Added tests for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
micmurawski committed Aug 10, 2024
1 parent 0bd3f9b commit 074bdac
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/run_tests_windows.yml
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
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ name: Run Tests
on: [pull_request, workflow_dispatch]

jobs:
test_python38:
test_linux_python38:
secrets: inherit
uses: ./.github/workflows/run_tests_linux.yml
with:
python-version: "3.8"
test_python312:
test_linux_python312:
secrets: inherit
uses: ./.github/workflows/run_tests_linux.yml
with:
python-version: "3.12"
test_windows_python312:
secrets: inherit
uses: ./.github/workflows/run_tests_windows.yml
with:
python-version: "3.12"

0 comments on commit 074bdac

Please sign in to comment.