-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (35 loc) · 1.2 KB
/
test_simple.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Test Simple
on: [workflow_dispatch]
jobs:
build_and_test:
name: "${{ matrix.os }} + python ${{ matrix.python-version }}"
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macos-13"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13.0-rc.1"]
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 requirements
run: |
python -m pip install --upgrade pip
pip install "setuptools>=67.2.0"
pip install wheel build
- name: Test build from source
run: python -m build --wheel
- name: Test direct install from GitHub main
run: pip install git+https://github.com/rathaROG/lapx.git
- name: 🧪 Run test_simple.py
run: |
cd .githubtest
python test_simple.py
- name: Archive wheels
uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.os }}-${{ matrix.python-version }}
path: dist/*.whl