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

Configure Renovate #18

Merged
merged 59 commits into from
Jun 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
ba46d3e
removed needs and renamed package-and-release
victorbadenas Dec 1, 2021
80a8ad8
removed non general caltech101 training
victorbadenas Dec 1, 2021
bbcbeae
add trainer tests
victorbadenas Dec 20, 2021
6262756
removed padding as kwarg
victorbadenas Dec 20, 2021
16452e6
added test_cnn
victorbadenas Dec 20, 2021
815a27f
Merge pull request #7 from vbadenas/feature_trainUnittests
victorbadenas Dec 20, 2021
a69c92a
Update README.md
victorbadenas Dec 20, 2021
961c161
Update python-app.yml
victorbadenas Dec 20, 2021
ef50f48
Update README.md
victorbadenas Dec 20, 2021
7f89372
change to Apache2.0 license
victorbadenas Dec 20, 2021
7e1009a
Merge branch 'master' of https://github.com/vbadenas/frarch
victorbadenas Dec 20, 2021
0060608
add docs workflow
victorbadenas Dec 20, 2021
faa1467
add dockerhub login
victorbadenas Dec 20, 2021
78c7e01
Update python-app.yml
victorbadenas Dec 20, 2021
3f2f4c4
Update python-app.yaml
victorbadenas Dec 20, 2021
4aa02f7
Merge branch 'master' of https://github.com/vbadenas/frarch
victorbadenas Dec 20, 2021
d481512
Update python-app.yml
victorbadenas Dec 20, 2021
ecc8a42
change to password
victorbadenas Dec 20, 2021
76d2161
Merge branch 'master' of https://github.com/vbadenas/frarch
victorbadenas Dec 20, 2021
b2fe3db
reverted add docker login
victorbadenas Dec 20, 2021
b54e841
add logo
victorbadenas Jan 1, 2022
2e19c5f
change codecov logo
victorbadenas Jan 1, 2022
0d9c8dd
removed print in test
victorbadenas Jan 1, 2022
8bece7c
removed print and progressbar
victorbadenas Jan 1, 2022
2681ab8
update Readme
victorbadenas Jan 1, 2022
b2a1b02
add python script
victorbadenas Jan 1, 2022
07e7fdf
add final yaml
victorbadenas Jan 5, 2022
7c6e86a
remove docs pdf action
victorbadenas Jan 5, 2022
311fea3
Merge pull request #9 from vbadenas/docs_improveReadme
victorbadenas Jan 5, 2022
ab78bcd
add functional tests
victorbadenas Jan 5, 2022
3da416a
update pipeline
victorbadenas Jan 5, 2022
ba54c21
removed cross platform unittests on previous python versions
victorbadenas Jan 5, 2022
2c36756
Merge pull request #10 from vbadenas/feature_functionalTests
victorbadenas Jan 5, 2022
3ce8cfa
added dataset docstrings
victorbadenas Jan 5, 2022
2bda2a1
added code examples
victorbadenas Jan 5, 2022
5fa2e11
add pil transforms doc
victorbadenas Jan 6, 2022
52cd0f4
added powerpil
victorbadenas Jan 6, 2022
21ee211
add docs for models
victorbadenas Jan 7, 2022
2e2988e
add other docs
victorbadenas Jan 7, 2022
b6b1d7c
changed repository name
victorbadenas Feb 13, 2022
cf40a84
change repository url in meta
victorbadenas Feb 13, 2022
14c5bf1
Merge branch 'master' into docs_createDocumentationsForModules
victorbadenas Feb 16, 2022
2bbcd3f
added typings for datasets
victorbadenas Feb 16, 2022
8718e86
added typings for models
victorbadenas Feb 16, 2022
b457cd7
added typings for metrics
victorbadenas Feb 16, 2022
221bd16
pre-commit run
victorbadenas Feb 16, 2022
9e984ea
add docstrings for metrics
victorbadenas Feb 17, 2022
b6442f9
fixed metrics errors
victorbadenas Feb 17, 2022
db067ec
add docstrings to checkpointer
victorbadenas Feb 17, 2022
d25459d
updated exceptions and parser
victorbadenas Feb 17, 2022
2d48b8c
add docstring to logger
victorbadenas Feb 17, 2022
07efd09
utils data docstrings
victorbadenas Feb 17, 2022
892313a
update trainers
victorbadenas Feb 17, 2022
4ef3adb
change username on pr template
victorbadenas Feb 17, 2022
42cbf52
fix Dict imported from the wrong package
victorbadenas Feb 17, 2022
9502c07
Merge pull request #14 from victorbadenas/docs_createDocumentationsFo…
victorbadenas Feb 17, 2022
8dea021
bump version to 0.1.4
victorbadenas Feb 17, 2022
675f15a
final annotations (#15)
victorbadenas Mar 21, 2022
f49313c
Add renovate.json
renovate-bot Jun 7, 2022
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
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ max-line-length = 88
# D100-D107: Missing docstrings
# D200: One-line docstring should fit on one line with quotes.
extend-ignore = E203,E402,F401,D100,D101,D102,D103,D104,D105,D106,D107,D200
docstring-convention = numpy
; docstring-convention = numpy
# Ignore missing docstrings within unit testing functions.
per-file-ignores = **/tests/:D100,D101,D102,D103,D104,D105,D106,D107
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Change the ## to your pull request number -->
![Coverage Badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/vbadenas/9b54bd086e121233d2ad9a62d2136258/raw/frarch__pull_##.json)
![Coverage Badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/victorbadenas/9b54bd086e121233d2ad9a62d2136258/raw/frarch__pull_##.json)

**Notes for reviewer:**

Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Docs workflow
#
# Ensures that the docs can be built with sphinx.
# - On every push and PR, checks the HTML documentation builds on linux.
# - On every PR and tag, checks the documentation builds as a PDF on linux.
# - If your repository is public, on pushes to the default branch (i.e. either
# master or main), the HTML documentation is pushed to the gh-pages branch,
# which is automatically rendered at the publicly accessible url
# https://USER.github.io/PACKAGE/

name: docs

on: [push, pull_request]

jobs:
docs-html:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Build HTML docs
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"

- name: Determine default branch
run: |
DEFAULT_BRANCH=$(git remote show origin | awk '/HEAD branch/ {print $NF}')
echo "default_branch=$DEFAULT_BRANCH" >> $GITHUB_ENV
echo "default_branch_ref=refs/heads/$DEFAULT_BRANCH" >> $GITHUB_ENV

- name: Determine whether repo is public
run: |
REMOTE_HTTP=$(git remote get-url origin | sed -e "s|:\([^/]\)|/\1|g" -e "s|^git@|https://|" -e "s|\.git$||")
echo "Probing $REMOTE_HTTP"
if wget -q --method=HEAD ${REMOTE_HTTP}; then IS_PUBLIC=1; else IS_PUBLIC=0; fi
echo "is_public=$IS_PUBLIC"
echo "is_public=$IS_PUBLIC" >> $GITHUB_ENV

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == env.default_branch_ref && env.is_public == 1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: "docs/_build/html/"

# docs-pdf:
# if: |
# github.event_name == 'pull_request' ||
# startsWith(github.ref, 'refs/tags/')
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2

# - name: Build PDF docs
# uses: ammaraskar/sphinx-action@master
# with:
# docs-folder: "docs/"
# pre-build-command: "apt-get update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended"
# build-command: "make latexpdf"

# - uses: actions/upload-artifact@v2
# if: startsWith(github.ref, 'refs/tags')
# with:
# name: Documentation
# path: docs/_build/latex/*.pdf
95 changes: 66 additions & 29 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: frarch CI

on:
push:
branches:
- master
- development
- feature_*
- fix_*
tags:
- v*
pull_request:
branches:
- master
- development
- feature_*
- fix_*
name: CI

on: [push, pull_request]

jobs:
build:
Expand All @@ -28,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
Expand All @@ -42,27 +28,30 @@ jobs:
unittest:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: [3.7, 3.8, 3.9]
runs-on: ${{ matrix.os }}
needs: [ build ]
runs-on: ubuntu-latest
needs: [build]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: install
run: |
python -m pip install --upgrade pip
pip install coverage
python setup.py -q install

- name: test
run: |
coverage run -m unittest discover
coverage report -m --omit='tests/*'
coverage run -m unittest discover -s tests/unit
coverage report -m --omit='tests/unit/*'

- if: ${{ matrix.python == '3.9' && matrix.os == 'ubuntu-latest' }}
- if: ${{ matrix.python == '3.9' }}
name: Get Coverage for badge
run: |
coverage json
Expand All @@ -75,7 +64,7 @@ jobs:
echo $BRANCH_NAME
echo "BRANCH=$(echo ${BRANCH_NAME})" >> $GITHUB_ENV

- if: ${{ matrix.python == '3.9' && matrix.os == 'ubuntu-latest' }}
- if: ${{ matrix.python == '3.9' }}
name: Create the Badge
uses: schneegans/[email protected]
with:
Expand All @@ -85,14 +74,62 @@ jobs:
label: Test Coverage
message: ${{ env.COVERAGE }}
color: green
namedLogo: Python
namedLogo: codecov

unittest-cross-platform:
strategy:
matrix:
os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
needs: [build]

steps:
- uses: actions/checkout@v3

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: install
run: |
python -m pip install --upgrade pip
pip install coverage
python setup.py -q install

- name: test
run: |
coverage run -m unittest discover -s tests/unit
coverage report -m --omit='tests/unit/*'

release-and-package:
functional:
strategy:
matrix:
python: [3.7, 3.8, 3.9]
runs-on: ubuntu-latest
needs: [build, unittest]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: install
run: |
python -m pip install --upgrade pip
pip install coverage
python setup.py -q install
- name: functional-test
run: |
cd tests/functional
./runFunctionalTests.sh

package-and-release:
runs-on: ubuntu-latest
needs: [build, unittest, functional]
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python 3.7
uses: actions/setup-python@v2
Expand Down
Loading