Skip to content

Commit

Permalink
Clean up project configuration 🐞 (#3)
Browse files Browse the repository at this point in the history
* Clean up configuration

* Clean up configuration

* fix call to codecov

* Simplify gh action

* Add ruff + basic implementation of ClassicalClassifier

* Add basic mkdocs

* Remove circleci

* fix typo in gh action

* minor changes to docs
  • Loading branch information
KarelZe authored Nov 20, 2023
1 parent 8525537 commit 0f91597
Show file tree
Hide file tree
Showing 41 changed files with 1,324 additions and 3,201 deletions.
38 changes: 0 additions & 38 deletions .circleci/config.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .coveragerc

This file was deleted.

18 changes: 18 additions & 0 deletions .github/.dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
# Maintain dependencies for pip
- package-ecosystem: "pip"
directory: "/" # Location of package manifests
schedule:
interval: "daily"

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
27 changes: 10 additions & 17 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,24 @@
name: Tests

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.9]
# Needed by miniconda
# https://github.com/marketplace/actions/setup-miniconda#important
defaults:
run:
shell: bash -l {0}

python-version: ["3.12"]
steps:
- name: Git clone
uses: actions/checkout@v2
- name: Set up virtual environment
uses: conda-incubator/setup-miniconda@v2
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
channels: defaults, conda-forge
- name: Install dependencies
run: conda install numpy scipy scikit-learn codecov pytest-cov
run: |
python -m pip install --upgrade pip setuptools
pip install .[test]
- name: Test with pytest
run: pytest -v --cov=tclf --pyargs tclf
- name: Code coverage
run: codecov
run: pytest -v --cov=src tests/
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ coverage.xml
*.log

# Sphinx documentation
doc/_build/
doc/generated/
site/

# PyBuilder
target/
8 changes: 0 additions & 8 deletions .readthedocs.yml

This file was deleted.

1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
![GitHubActions](https://github.com/karelze/tclf//actions/workflows/tests.yaml/badge.svg)
![Codecov](https://codecov.io/gh/karlze/tclf/branch/master/graph/badge.svg)
![CircleCI](https://dl.circleci.com/status-badge/img/gh/KarelZe/tclf/tree/master.svg?style=svg)
![ReadTheDocs](https://readthedocs.org/projects/tclf/badge/?version=latest)

# tclf 💸

Expand All @@ -19,7 +17,7 @@

## Usage

Documentation is available [here](https://tclf.readthedocs.io/en/latest/quick_start.html).
Documentation is available [here](https://KarelZe.github.io/tclf/).

## References

Expand Down
184 changes: 0 additions & 184 deletions doc/Makefile

This file was deleted.

16 changes: 0 additions & 16 deletions doc/_static/css/project-template.css

This file was deleted.

Loading

0 comments on commit 0f91597

Please sign in to comment.