-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1 from INGEOTEC/develop
Version - 0.0.1
- Loading branch information
Showing
11 changed files
with
531 additions
and
0 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,3 @@ | ||
[run] | ||
omit = | ||
*/tests* |
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,4 @@ | ||
{ | ||
"image":"mcr.microsoft.com/devcontainers/universal:2-linux", | ||
"postCreateCommand": "conda install -c conda-forge --yes numpy scipy scikit-learn nose pandas" | ||
} |
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,48 @@ | ||
name: Pip | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: test | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
channels: conda-forge | ||
allow-softlinks: true | ||
channel-priority: flexible | ||
show-channel-urls: true | ||
- name: Install dependencies | ||
run: | | ||
conda install --yes pip | ||
pip install twine build | ||
conda install --yes numpy scipy scikit-learn nose pandas | ||
python -m build | ||
- name: Pip | ||
if: ${{ runner.os == 'Linux' }} | ||
env: | ||
TWINE: ${{ secrets.TWINE }} | ||
run: | | ||
twine upload --skip-existing -u __token__ -p $TWINE dist/*.tar.gz; | ||
- name: Wheel | ||
if: ${{ runner.os != 'Linux' }} | ||
env: | ||
TWINE: ${{ secrets.TWINE }} | ||
run: | | ||
twine upload --skip-existing -u __token__ -p $TWINE dist/*.whl; |
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,53 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: test | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
channels: conda-forge | ||
allow-softlinks: true | ||
channel-priority: flexible | ||
show-channel-urls: true | ||
- name: Install dependencies | ||
run: | | ||
conda install --yes pip | ||
pip install coverage | ||
pip install coveralls | ||
conda install --yes numpy scipy scikit-learn nose pandas | ||
python setup.py build_ext --inplace | ||
- name: Tests on Linux | ||
if: ${{ runner.os == 'Linux' }} | ||
run: | | ||
which python | ||
python --version | ||
which coverage | ||
nosetests --verbose --with-coverage --cover-package=CompStats CompStats/tests | ||
- name: Tests on macOS and Windows | ||
if: ${{ runner.os != 'Linux' }} | ||
run: | | ||
nosetests --verbose CompStats/tests | ||
- name: coveralls | ||
if: ${{ runner.os == 'Linux' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
coveralls --service=github |
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,14 @@ | ||
# Copyright 2024 Sergio Nava Muñoz and Mario Graff Guerrero | ||
|
||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
|
||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
__version__ = '0.0.1' |
Oops, something went wrong.