Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/test-with-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test with PyPI

on: [pull_request, workflow_dispatch]

env:
PYTHONUNBUFFERED: 1

jobs:

# Test against PyPI packages
test-with-pypi:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.6, 3.11']
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you meant this:

Suggested change
python-version: ['3.6, 3.11']
python-version: ['3.6', '3.11']


runs-on: ${{ matrix.os }}
steps:
- name: Clone the Scimath source
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: python -m pip install click
- name: Install package under test
run: python -m pip install .
- name: Run tests (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
mkdir testdir
cd testdir
xvfb-run -a python -X faulthandler -m unittest discover -v scimath
- name: Run tests (not Ubuntu)
if: matrix.os != 'ubuntu-latest'
run: |
mkdir testdir
cd testdir
python -X faulthandler -m unittest discover -v scimath