Draft a New Release #111
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- develop | |
- master | |
- main | |
jobs: | |
test-full: | |
name: Full Test Suite | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ["3.10"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Check Python Version | |
run: python --version | |
- name: Install macOS Dependencies | |
if: runner.os == 'macOS' | |
run: | | |
brew tap sfarrens/sf | |
brew install bigmac libomp | |
- name: Install Package Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r develop.txt | |
python -m pip install twine | |
- name: Install PySAP | |
run: python -m pip install . | |
- name: Check PySAP Installation | |
run: | | |
python -c "import pysparse" | |
python -c "import pysap; print(pysap.info())" | |
- name: Run Tests | |
run: python -m pytest | |
- name: Save Test Results | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: unit-test-results-${{ matrix.os }}-${{ matrix.python-version }} | |
path: pytest.xml | |
- name: Run Examples | |
continue-on-error: true | |
run: python pysap/test/test_examples.py | |
- name: Check Distribution | |
run: | | |
python setup.py sdist | |
twine check dist/* | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: coverage.xml | |
flags: unittests | |
test-basic: | |
name: Basic Test Suite | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ["3.7", "3.8", "3.9"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Check Python Version | |
run: python --version | |
- name: Install macOS Dependencies | |
if: runner.os == 'macOS' | |
run: | | |
brew tap sfarrens/sf | |
brew install bigmac libomp | |
- name: Install Package Dependencies | |
run: | | |
python --version | |
python -m pip install --upgrade pip | |
python -m pip install -r develop.txt | |
- name: Install PySAP | |
run: python -m pip install . | |
- name: Check PySAP Installation | |
run: | | |
python -c "import pysparse" | |
python -c "import pysap; print(pysap.info())" | |
- name: Run Tests | |
run: python -m pytest |