-
Notifications
You must be signed in to change notification settings - Fork 4
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 #25 from vidartf/lab3
Updates for lab 3 + health
- Loading branch information
Showing
20 changed files
with
216 additions
and
200 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,51 @@ | ||
name: JS Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
run: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 50 | ||
|
||
- name: Setup mamba | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
mamba-version: "*" | ||
channels: conda-forge | ||
|
||
- name: Create the conda environment | ||
run: mamba install -q python=3.9 pip>17 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python --version | ||
node --version | ||
python -m pip install --upgrade -e ".[test]" | ||
- name: Run tests | ||
run: | | ||
cd js | ||
npm run test:ci | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 |
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,63 @@ | ||
name: Python Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
run: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python_version: [3.7, 3.8, 3.9] | ||
|
||
defaults: | ||
run: | ||
shell: pwsh | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 50 | ||
|
||
- name: Setup mamba | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
mamba-version: "*" | ||
channels: conda-forge | ||
|
||
- name: Create the conda environment | ||
run: mamba install -q python=${{ matrix.python_version }} pip>17 pytest-cov numpy | ||
|
||
- name: Windows binary dep upgrade | ||
if: matrix.os == 'windows-latest' | ||
run: mamba install -q pywin32 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python --version | ||
node --version | ||
python -m pip --version | ||
python -m pip install codecov | ||
python -m pip install --upgrade ".[test]" | ||
- name: Run tests | ||
run: | | ||
cd ${{ runner.temp }} | ||
py.test -l --cov-report xml:coverage.xml --cov=ipyscales --pyargs ipyscales | ||
py.test -l --cov-report xml:coverage-nbval.xml --cov=ipyscales ${{ github.workspace }}/examples | ||
cd ${{ github.workspace }} | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
files: ${{ runner.temp }}/coverage.xml,${{ runner.temp }}/coverage-nbval.xml |
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,7 @@ tests/ | |
# Ignore any build output from python: | ||
dist/*.tar.gz | ||
dist/*.wheel | ||
|
||
# Ignore dev noise | ||
coverage/ | ||
lab-dist/ |
Oops, something went wrong.