@@ -4,18 +4,17 @@ on: [push, workflow_dispatch]
44
55jobs :
66
7- build :
8- runs-on : ${{ matrix.os }}
7+ linux_test :
8+ runs-on : ubuntu-latest
99
1010 strategy :
1111 matrix :
12- os : [ubuntu-latest, macos-latest]
1312 python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
1413
1514 steps :
1615 - uses : actions/checkout@v4
1716
18- - name : Set up Python ${{ matrix.python-version }} for ${{ matrix.os }}
17+ - name : Set up Python ${{ matrix.python-version }} for Linux
1918 uses : actions/setup-python@v4
2019 with :
2120 python-version : ${{ matrix.python-version }}
@@ -25,17 +24,64 @@ jobs:
2524
2625 - name : Install tailwind binary
2726 run : |
28- OS_NAME="${{ matrix.os }}"
29- OS_NAME="${OS_NAME%-latest}"
27+ python scripts/binary.py pull linux-x64
28+ python scripts/binary.py select linux-x64
3029
31- case "$OS_NAME" in
32- ubuntu) OS_NAME="linux" ;;
33- esac
30+ - name : Run ruff and pytest
31+ run : |
32+ ruff check .
33+ pytest -v
3434
35- echo "OS_NAME --> $OS_NAME" # debug debug debug debug debug debug debug debug debug debug debug debug
35+ macos_test :
36+ runs-on : macos-latest
3637
37- python scripts/binary.py pull $OS_NAME-${{ setup-python.architecture }}
38- python scripts/binary.py select $OS_NAME-${{ setup-python.architecture }}
38+ strategy :
39+ matrix :
40+ python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
41+
42+ steps :
43+ - uses : actions/checkout@v4
44+
45+ - name : Set up Python ${{ matrix.python-version }} for MacOS
46+ uses : actions/setup-python@v4
47+ with :
48+ python-version : ${{ matrix.python-version }}
49+
50+ - name : Install dependencies
51+ run : pip install -e .[dev] --config-settings editable_mode=compat
52+
53+ - name : Install tailwind binary
54+ run : |
55+ python scripts/binary.py pull macos-arm64
56+ python scripts/binary.py select macos-arm64
57+
58+ - name : Run ruff and pytest
59+ run : |
60+ ruff check .
61+ pytest -v
62+
63+ windows_test :
64+ runs-on : windows-latest
65+
66+ strategy :
67+ matrix :
68+ python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
69+
70+ steps :
71+ - uses : actions/checkout@v4
72+
73+ - name : Set up Python ${{ matrix.python-version }} for Windows
74+ uses : actions/setup-python@v4
75+ with :
76+ python-version : ${{ matrix.python-version }}
77+
78+ - name : Install dependencies
79+ run : pip install -e .[dev] --config-settings editable_mode=compat
80+
81+ - name : Install tailwind binary
82+ run : |
83+ python scripts/binary.py pull windows-x64
84+ python scripts/binary.py select windows-x64
3985
4086 - name : Run ruff and pytest
4187 run : |
0 commit comments