Skip to content

Commit 52e3d08

Browse files
Merge pull request #490 from shankarpandala/feature/update-library
Feature/update library
2 parents 8d0b3d5 + e6ecd09 commit 52e3d08

File tree

1 file changed

+0
-98
lines changed

1 file changed

+0
-98
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -8,105 +8,7 @@ on:
88
branches: [ main, master ]
99

1010
jobs:
11-
test:
12-
runs-on: ubuntu-latest
13-
permissions:
14-
contents: write
15-
strategy:
16-
matrix:
17-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
18-
dependency-versions: ['minimum', 'latest']
19-
include:
20-
- dependency-versions: minimum
21-
numpy-version: '1.19.5' # Updated minimum version
22-
pandas-version: '1.0.0'
23-
scikit-learn-version: '1.0.0'
24-
- dependency-versions: latest
25-
numpy-version: '*'
26-
pandas-version: '*'
27-
scikit-learn-version: '*'
28-
fail-fast: false
29-
30-
steps:
31-
- uses: actions/checkout@v4
32-
with:
33-
ref: ${{ github.head_ref }}
34-
fetch-depth: 0
35-
36-
- name: Set up Python ${{ matrix.python-version }}
37-
uses: actions/setup-python@v5
38-
with:
39-
python-version: ${{ matrix.python-version }}
40-
cache: 'pip'
41-
cache-dependency-path: |
42-
setup.py
43-
pyproject.toml
44-
requirements*.txt
45-
46-
- name: Install build dependencies
47-
run: |
48-
python -m pip install --upgrade pip setuptools wheel
49-
python -m pip install build
50-
51-
- name: Install dependencies
52-
run: |
53-
python -m pip install '.[dev]'
54-
python -m pip install pytest-cov
55-
if [ "${{ matrix.dependency-versions }}" = "minimum" ]; then
56-
python -m pip install "numpy==${{ matrix.numpy-version }}" "pandas==${{ matrix.pandas-version }}" "scikit-learn==${{ matrix.scikit-learn-version }}"
57-
fi
58-
59-
- name: Run tests
60-
continue-on-error: true
61-
run: |
62-
pytest --cov=lazypredict tests/ --cov-report=xml --cov-fail-under=80
63-
64-
- name: Upload coverage
65-
continue-on-error: true
66-
uses: codecov/codecov-action@v4
67-
with:
68-
token: ${{ secrets.CODECOV_TOKEN }}
69-
files: ./coverage.xml
70-
fail_ci_if_error: true
71-
72-
docs:
73-
needs: test
74-
runs-on: ubuntu-latest
75-
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev')
76-
77-
steps:
78-
- uses: actions/checkout@v4
79-
- name: Set up Python
80-
uses: actions/setup-python@v5
81-
with:
82-
python-version: '3.12'
83-
cache: 'pip'
84-
cache-dependency-path: |
85-
setup.py
86-
pyproject.toml
87-
requirements*.txt
88-
89-
- name: Install dependencies
90-
run: |
91-
python -m pip install --upgrade pip
92-
pip install '.[dev]'
93-
pip install sphinx sphinx-rtd-theme myst-parser myst-nb
94-
95-
- name: Build documentation
96-
run: |
97-
cd docs
98-
make html
99-
100-
- name: Deploy documentation
101-
uses: peaceiris/actions-gh-pages@v3
102-
with:
103-
github_token: ${{ secrets.GITHUB_TOKEN }}
104-
publish_dir: ./docs/build/html
105-
keep_files: true
106-
commit_message: "docs: update documentation"
107-
10811
publish:
109-
needs: [test, docs]
11012
runs-on: ubuntu-latest
11113
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
11214
permissions:

0 commit comments

Comments
 (0)