Skip to content

Commit

Permalink
Setting up github CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gershnik committed Mar 26, 2023
1 parent 8486d06 commit 1f477de
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
50 changes: 50 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Test

on:
push:
branches:
- '*'
- '*/**'
paths-ignore:
- 'README.md'
- '.gitignore'
- 'LICENSE'
- 'Acknowledgments.md'
- 'README.md'
- 'CHANGELOG.md'
- '.github/workflows/publish.yml'

jobs:
matrix:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.8"]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true

- name: Set up Python
uses: actions/setup-python@v4
id: setup-python
with:
python-version: ${{matrix.python-version}}
architecture: x64

- name: Install Nox
run: pip install Nox

- name: Fixup Build Params
if: matrix.os == 'windows-latest' && matrix.python-version == 'pypy-3.8'
run: |
$Python3_ROOT_DIR=$Env:Python3_ROOT_DIR -replace '\\', '/'
echo SKBUILD_CONFIGURE_OPTIONS=-DPYTHON_LIBRARY=$Python3_ROOT_DIR/libs/python38.lib >> $Env:GITHUB_ENV
#Get-ChildItem -Path $Env:Python3_ROOT_DIR -Recurse
- name: Test
run: nox --sessions test --force-python ${{ steps.setup-python.outputs.python-path }}

2 changes: 1 addition & 1 deletion code

0 comments on commit 1f477de

Please sign in to comment.