From 2f9453c13997370dc88f8c4f2f968d41aceaa6eb Mon Sep 17 00:00:00 2001 From: Melissa DeLucchi <113376043+delucchi-cmu@users.noreply.github.com> Date: Fri, 6 Dec 2024 11:11:56 -0500 Subject: [PATCH] Test on Windows OS. (#454) --- .github/workflows/testing-windows.yml | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/testing-windows.yml diff --git a/.github/workflows/testing-windows.yml b/.github/workflows/testing-windows.yml new file mode 100644 index 0000000..c27bcc5 --- /dev/null +++ b/.github/workflows/testing-windows.yml @@ -0,0 +1,34 @@ +# This workflow will install Python dependencies and run tests in a Windows environment. +# This is intended to catch any file-system specific issues, and so runs less +# frequently than other test suites. + +name: Windows unit test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: windows-latest + strategy: + matrix: + python-version: ['3.10'] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e .[dev] + pip install -r requirements.txt + - name: Run unit tests with pytest + run: | + python -m pytest tests \ No newline at end of file