Skip to content

Commit a5562c7

Browse files
committed
Including a basic import test to the workflow
1 parent dc2f9dc commit a5562c7

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- test
8+
# Release branches
9+
#- "[0-9]+.[0-9]+.X"
10+
11+
# Manual run
12+
workflow_dispatch:
13+
14+
jobs:
15+
test_package:
16+
name: Build Windows x86 wheels for Python ${{ matrix.python }}
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
matrix:
20+
config:
21+
- { os: windows-latest, arch: AMD64, python-arch: x64, name: windows-latest-x64 }
22+
- { os: windows-latest, arch: x86, python-arch: x86, name: windows-latest-x86 }
23+
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
24+
steps:
25+
- name: Check out repository
26+
uses: actions/checkout@v3
27+
28+
- name: Set up Python ${{ matrix.python }}
29+
uses: actions/setup-python@v3
30+
with:
31+
python-version: ${{ matrix.python }}
32+
architecture: ${{ matrix.config.python-arch }}
33+
34+
- name: Setup package
35+
run: |
36+
python -m pip install setuptools --upgrade
37+
python -m pip install wheel --upgrade
38+
python setup.py install
39+
40+
- name: Import package
41+
run: |
42+
python -c "import delphifmx"

0 commit comments

Comments
 (0)