Skip to content

Commit

Permalink
Merge pull request #88 from AnotherSamWilson/major_update_6
Browse files Browse the repository at this point in the history
Major update 6
  • Loading branch information
AnotherSamWilson authored Jul 26, 2024
2 parents f6fb6ad + 3b0031e commit 2f45ce4
Show file tree
Hide file tree
Showing 35 changed files with 8,898 additions and 5,926 deletions.
15 changes: 0 additions & 15 deletions .coveragerc

This file was deleted.

48 changes: 28 additions & 20 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: tests + mypy

on:
push:
branches: [ "master" ]
branches: [ "major_update_6", "master" ]
pull_request:
branches: [ "master" ]

Expand All @@ -16,28 +16,36 @@ jobs:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install mypy
pip install codecov
pip install pytest-cov
pip install blosc2
pip install dill
pip install pandas
pip install seaborn
pip install matplotlib
pip install scipy
pip install scikit-learn
pip install lightgbm
pip install pyarrow
- name: Test with pytest
pip install pytest mypy codecov pytest-cov pandas
pip install plotnine matplotlib scipy scikit-learn
pip install lightgbm pyarrow black isort dill
- name: MyPy Checks
run: mypy miceforest --ignore-missing-imports

- name: Black Formatting - Package
run: black miceforest --check

- name: Black Formatting - Tests
run: black tests --check

- name: Isort Checks
run: isort miceforest --diff

- name: Pytest
run: pytest --cov=miceforest --cov-report html

- name: Upload coverage reports to Codecov
run: |
mypy miceforest
pytest --cov-config .coveragerc --cov-report html --cov=miceforest
codecov
curl -Os https://cli.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'service'-${{ github.run_id }} -F service -f coverage-service.xml
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ coverage.*
.codecovtoken
examples/icon_small.png
support/
BuildAndInstall.bat
setupdev.py
*/_build/
*.bat
release_commands.txt
dev/
.Rproj.user
miceforest.Rproj
.Rhistory
benchmarks/*
requirements.txt
.venv
poetry.lock
pyproject.toml
*.DS_Store*
.devcontainer
Dockerfile
dev_guide.md
Loading

0 comments on commit 2f45ce4

Please sign in to comment.