-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from CEA-COSMIC/develop
Version 0.0.1 patch release
- Loading branch information
Showing
16 changed files
with
290 additions
and
195 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
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.8] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Conda with Python ${{ matrix.python-version }} | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
auto-activate-base: false | ||
|
||
- name: Check Conda | ||
shell: bash -l {0} | ||
run: | | ||
conda info | ||
conda list | ||
python --version | ||
- name: Install macOS Dependencies | ||
shell: bash -l {0} | ||
if: runner.os == 'macOS' | ||
run: | | ||
brew install libomp | ||
- name: Install Package Dependencies | ||
shell: bash -l {0} | ||
run: | | ||
python --version | ||
python -m pip install --upgrade pip | ||
python -m pip install git+https://github.com/CEA-COSMIC/pysap@develop | ||
python -m pip install coverage nose | ||
python -m pip install pytest pytest-cov pytest-pycodestyle pytest-pydocstyle | ||
python -m pip install twine | ||
python -m pip install . | ||
- name: Run Tests | ||
shell: bash -l {0} | ||
run: | | ||
python setup.py test | ||
- 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: Check Distribution | ||
shell: bash -l {0} | ||
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.6, 3.7, 3.9] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Conda with Python ${{ matrix.python-version }} | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
auto-activate-base: false | ||
|
||
- name: Install macOS Dependencies | ||
shell: bash -l {0} | ||
if: runner.os == 'macOS' | ||
run: | | ||
brew install libomp | ||
- name: Install Package Dependencies | ||
shell: bash -l {0} | ||
run: | | ||
python --version | ||
python -m pip install --upgrade pip | ||
python -m pip install git+https://github.com/CEA-COSMIC/pysap@develop | ||
python -m pip install coverage nose | ||
python -m pip install pytest pytest-cov pytest-pycodestyle pytest-pydocstyle | ||
python -m pip install . | ||
- name: Run Tests | ||
shell: bash -l {0} | ||
run: | | ||
python setup.py test |
This file was deleted.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.