Skip to content

Commit bee0e1f

Browse files
ci: add Windows CI runner for cross-platform path tests (#52)
* ci: add Windows CI runner for cross-platform path tests * ci: Expand API test matrix to include Python 3.10, 3.12 and install additional dependencies. --------- Co-authored-by: Ayush Jhunjhunwala <48875674+the-non-expert@users.noreply.github.com>
1 parent cf7b546 commit bee0e1f

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/api-tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,39 @@ jobs:
8080
run: |
8181
pytest tests/api/ -v
8282
83+
cross-platform-test:
84+
name: Cross-Platform Path Tests
85+
defaults:
86+
run:
87+
working-directory: api
88+
strategy:
89+
fail-fast: false
90+
matrix:
91+
os: [ubuntu-latest, windows-latest]
92+
python-version: ["3.10", "3.11", "3.12"]
93+
runs-on: ${{ matrix.os }}
94+
95+
steps:
96+
- uses: actions/checkout@v4
97+
98+
- name: Set up Python ${{ matrix.python-version }}
99+
uses: actions/setup-python@v5
100+
with:
101+
python-version: ${{ matrix.python-version }}
102+
cache: "pip"
103+
cache-dependency-path: api/requirements.txt
104+
105+
- name: Install dependencies
106+
run: |
107+
python -m pip install --upgrade pip
108+
pip install -e '.[dev]'
109+
pip install -r requirements.txt
110+
pip install httpx pytest-asyncio
111+
112+
- name: Run cross-platform path tests
113+
run: |
114+
pytest tests/test_project.py tests/test_cross_platform_paths.py -v
115+
83116
lint:
84117
name: Python Lint
85118
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)