Skip to content

Commit

Permalink
resolve merge
Browse files Browse the repository at this point in the history
  • Loading branch information
RudrakshTuwani committed May 7, 2022
2 parents 96e519b + 462207a commit 11940ae
Show file tree
Hide file tree
Showing 50 changed files with 3,234 additions and 641 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
- MAPIE Version [e.g. 0.3.2]

**Additional context**
Add any other context about the problem here.
32 changes: 16 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN_VBL }}
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN_VBL }}
61 changes: 29 additions & 32 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,43 +9,40 @@ jobs:
matrix:
include:
- os: ubuntu-latest
python-version: 3.7
numpy-version: 1.18.5
python-version: "3.7"
numpy-version: 1.21.4
- os: ubuntu-latest
python-version: 3.8
numpy-version: 1.19.5
python-version: "3.8"
numpy-version: 1.21.4
- os: ubuntu-latest
python-version: 3.9
numpy-version: 1.20.3
- os: windows-latest
python-version: 3.7
numpy-version: 1.18.5
- os: windows-latest
python-version: 3.8
numpy-version: 1.19.5
python-version: "3.9"
numpy-version: 1.21.4
- os: ubuntu-latest
python-version: "3.10"
numpy-version: 1.22.3
- os: windows-latest
python-version: 3.9
numpy-version: 1.20.3
python-version: "3.10"
numpy-version: 1.22.3
defaults:
run:
shell: bash -l {0}

steps:
- name: Git clone
uses: actions/checkout@v2
- name: Set up virtual environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: environment.ci.yml
channels: defaults, conda-forge
- name: Install numpy
run: conda install numpy=${{ matrix.numpy-version }}
- name: Check linting
run: make lint
- name: Check static typing
run: make type-check
- name: Test with pytest
run: make coverage
- name: Code coverage
run: codecov
- name: Git clone
uses: actions/checkout@v2
- name: Set up virtual environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: environment.ci.yml
channels: defaults, conda-forge
- name: Install numpy
run: conda install numpy=${{ matrix.numpy-version }}
- name: Check linting
run: make lint
- name: Check static typing
run: make type-check
- name: Test with pytest
run: make coverage
- name: Code coverage
run: codecov
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ target/
.vscode

# Images
*.png
*.jpeg

# ZIP files
Expand Down
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
History
=======

0.3.3 (2022-XX-XX)
------------------
* Relax and fix typing

0.3.2 (2022-03-11)
------------------
* Refactorize unit tests
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.PHONY: tests doc build

lint:
flake8 . --exclude=doc

type-check:
mypy mapie examples --strict --allow-untyped-calls
mypy mapie examples

tests:
pytest -vs --doctest-modules mapie
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Python 3.7+

**MAPIE** stands on the shoulders of giants.

Its only internal dependency is `scikit-learn <https://scikit-learn.org/stable/>`_.
Its only internal dependencies are `scikit-learn <https://scikit-learn.org/stable/>`_ and `numpy=>1.21 <https://numpy.org/>`_.


🛠 Installation
Expand Down
Loading

0 comments on commit 11940ae

Please sign in to comment.