lock scikit-learn version to 0.23.2

fix github actions workflow
This commit is contained in:
2021-01-10 20:05:36 +01:00
parent 673081cdc5
commit 8359e442e5
3 changed files with 11 additions and 12 deletions

View File

@@ -13,25 +13,25 @@ on:
jobs: jobs:
build: build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: [3.6, 3.7, 3.8] os: [macos-latest]
python: [3.7, 3.8]
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python }}
- name: Install dependencies - name: Install dependencies
run: | run: |
pip install -q --upgrade pip pip install -q --upgrade pip
pip install -q -r requirements.txt pip install -q -r requirements.txt
pip install -q --upgrade codecov coverage black flake8 codacy-coverage pip install -q --upgrade codecov coverage black flake8 codacy-coverage
- name: Lint & format - name: Lint
run: | run: |
black --check --diff stree black --check --diff stree
flake8 --count stree flake8 --count stree
@@ -49,4 +49,3 @@ jobs:
with: with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml coverage-reports: coverage.xml

View File

@@ -1,4 +1,4 @@
numpy numpy
scikit-learn scikit-learn==0.23.2
pandas pandas
ipympl ipympl

View File

@@ -30,7 +30,7 @@ setuptools.setup(
"Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Scientific/Engineering :: Artificial Intelligence",
"Intended Audience :: Science/Research", "Intended Audience :: Science/Research",
], ],
install_requires=["scikit-learn>=0.23.0", "numpy", "ipympl"], install_requires=["scikit-learn==0.23.2", "numpy", "ipympl"],
test_suite="stree.tests", test_suite="stree.tests",
zip_safe=False, zip_safe=False,
) )