Skip to content

Commit 1f477de

Browse files
committed
Setting up github CI testing
1 parent 8486d06 commit 1f477de

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

.github/workflows/test.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
- '*/**'
8+
paths-ignore:
9+
- 'README.md'
10+
- '.gitignore'
11+
- 'LICENSE'
12+
- 'Acknowledgments.md'
13+
- 'README.md'
14+
- 'CHANGELOG.md'
15+
- '.github/workflows/publish.yml'
16+
17+
jobs:
18+
matrix:
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: [macos-latest, ubuntu-latest, windows-latest]
24+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.8"]
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v3
28+
with:
29+
submodules: true
30+
31+
- name: Set up Python
32+
uses: actions/setup-python@v4
33+
id: setup-python
34+
with:
35+
python-version: ${{matrix.python-version}}
36+
architecture: x64
37+
38+
- name: Install Nox
39+
run: pip install Nox
40+
41+
- name: Fixup Build Params
42+
if: matrix.os == 'windows-latest' && matrix.python-version == 'pypy-3.8'
43+
run: |
44+
$Python3_ROOT_DIR=$Env:Python3_ROOT_DIR -replace '\\', '/'
45+
echo SKBUILD_CONFIGURE_OPTIONS=-DPYTHON_LIBRARY=$Python3_ROOT_DIR/libs/python38.lib >> $Env:GITHUB_ENV
46+
#Get-ChildItem -Path $Env:Python3_ROOT_DIR -Recurse
47+
48+
- name: Test
49+
run: nox --sessions test --force-python ${{ steps.setup-python.outputs.python-path }}
50+

0 commit comments

Comments
 (0)