Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/2.3.0 #227

Merged
merged 41 commits into from
Mar 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
82a66bb
demo workflow
fpingas Mar 20, 2023
24db823
try pr workflow
fpingas Mar 20, 2023
df1a7e7
pin ubuntu 20.04
fpingas Mar 20, 2023
f2341e7
scikit-learn fix
fpingas Mar 20, 2023
23f3cd8
remove 3.11
fpingas Mar 20, 2023
b444f50
try another coverage syntax
fpingas Mar 20, 2023
4701443
remove 3.10
fpingas Mar 20, 2023
d9a10c2
missing -e install
fpingas Mar 20, 2023
2a8a099
try another coverage syntax
fpingas Mar 20, 2023
f84bdf9
Another coverage syntax
fpingas Mar 20, 2023
36c5b97
Yet another coverage syntax
fpingas Mar 20, 2023
6deab0b
pin coverage
fpingas Mar 21, 2023
ea841c7
remove coverage bot
fpingas Mar 23, 2023
80e7e1f
test fail below coverage
fpingas Mar 23, 2023
88c9766
test wrong test
fpingas Mar 23, 2023
9e90d28
Revert "test wrong test"
fpingas Mar 23, 2023
f4b9fd3
Add pip check, type check and linter
fpingas Mar 23, 2023
fcd326d
Add type annotation to dict in isolation forest learner
fpingas Mar 23, 2023
02404df
Try implicit optional config for mypy
fpingas Mar 23, 2023
1470a92
more type annotation
fpingas Mar 23, 2023
4a4435a
Change iterable type hint to iterator
fpingas Mar 23, 2023
a21bb00
wrap iterator with array
fpingas Mar 23, 2023
120ebc5
add build docs step
fpingas Mar 23, 2023
1c62027
workflow syntax
fpingas Mar 23, 2023
5c647c8
try fix build docs
fpingas Mar 23, 2023
bd99f81
test packinging in push; publish workflow; cleanup repo
fpingas Mar 24, 2023
725a8c1
push branch syntax
fpingas Mar 24, 2023
a2178bf
run for all branches
fpingas Mar 24, 2023
913a9a8
rollback changes to coveragerc; increment setup classifiers
fpingas Mar 24, 2023
c47b653
update coverage threshold
fpingas Mar 24, 2023
f131446
Review suggestions
fpingas Mar 27, 2023
fb1d8d7
lint
fpingas Mar 27, 2023
1f18eb5
Set version bump
fpingas Mar 27, 2023
dbadbec
Add previous changes to changelog
fpingas Mar 27, 2023
c1e87e7
change to rc
fpingas Mar 27, 2023
f535ee0
Merge branch 'master' into 2.3.0rc0
fpingas Mar 28, 2023
ac6dd7a
readme badges
fpingas Mar 28, 2023
a751260
Test distribution
fpingas Mar 28, 2023
c679453
Remove extra character in readme
fpingas Mar 28, 2023
671c1bc
Move to 2.3.0
fpingas Mar 28, 2023
8e9219e
Fix broken api link in readme
fpingas Mar 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
209 changes: 0 additions & 209 deletions .circleci/config.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml
name: Publish Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install build
- name: Build package
run: python3 -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
137 changes: 137 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: Test Suite

on:
push:
branches:
- '**'

jobs:
linter:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name:
run: |
#!/bin/bash
set -euxo pipefail
python3 -m pip install -q flake8
python3 -m flake8 \
--ignore=E731,W503 \
--filename=*.py \
--exclude=__init__.py \
--show-source \
--statistics \
--max-line-length=120 \
src/ tests/

test-packaging:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Build package
run: |
#!/bin/bash
set -euxo pipefail

python3 -m pip install --upgrade pip
python3 -m pip install build twine
python3 -m build
python3 -m twine check dist/*

test-suite:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up venv
run: |
#!/bin/bash
set -euxo pipefail

python3 -m venv env
source env/bin/activate
python3 -m pip install --upgrade pip setuptools

echo "Python path: $(which python3)"
echo "Python version: $(python3 --version)"
echo "pip version: $(python3 -m pip --version)"
- name: Install dependencies
run: |
#!/bin/bash
set -euxo pipefail
source env/bin/activate

python3 -m pip install -e .[devel]
- name: Pip check
run: |
#!/bin/bash
set -euxo pipefail
source env/bin/activate

python3 -m pip check
- name: Type check
run: |
#!/bin/bash
set -euxo pipefail
source env/bin/activate

python3 -m mypy src tests --config mypy.ini
- name: Test with pytest
run: |
#!/bin/bash
set -euxo pipefail
source env/bin/activate

python3 -m pytest --cov-fail-under=94 --cov=fklearn tests/

build-docs:
needs: [linter, test-suite]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Set up venv
run: |
#!/bin/bash
set -euxo pipefail

python3 -m venv env
source env/bin/activate
python3 -m pip install --upgrade pip setuptools

echo "Python path: $(which python3)"
echo "Python version: $(python3 --version)"
echo "pip version: $(python3 -m pip --version)"
- name: Install dependencies
run: |
#!/bin/bash
set -euxo pipefail
source env/bin/activate

python3 -m pip install -e .[devel]
python3 -m pip install -r docs/requirements.txt
- name: Generate docs
run: |
#!/bin/bash
set -euxo pipefail
source env/bin/activate

sudo apt-get install pandoc
cd docs/ && make html
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.6
version: 3.9
install:
- requirements: docs/requirements.txt
- method: pip
Expand Down
Loading