Skip to content

Commit f0bcf02

Browse files
committed
✨ add os-compatibility test CI/CD
1 parent d2faa30 commit f0bcf02

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Cross-platform Compatibility Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
os-tests:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
python-version: ["3.11"]
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Python ${{ matrix.python-version }} on ${{matrix.os}}
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install Poetry
28+
shell: bash
29+
run: |
30+
curl -sSL https://install.python-poetry.org | python -
31+
echo "$HOME/.local/bin" >> $GITHUB_PATH
32+
33+
- name: Configure Poetry and install dependencies
34+
shell: bash
35+
run: |
36+
poetry config virtualenvs.create false
37+
poetry install --no-interaction --with dev
38+
39+
- name: Run tests
40+
run: poetry run pytest

0 commit comments

Comments
 (0)