mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
a31edd4477
* Test on Python 3.11 release candidate 2 * tensorflow; python<3.11 * tensorflow; python_version < 3.11 * tensorflow; python_version < "3.11" * sympy, tensorflow; python_version < "3.11" * sklearn; python_version < "3.11" * matplotlib, pandas, qiskit * statsmodels; python_version < "3.11" * Bring back Pandas * Problem deps are qiskit, statsmodels, and tensorflow * updating DIRECTORY.md * python-version: 3.11-dev --> 3.11 * updating DIRECTORY.md * Add pytest --ignore to pyproject.toml * Update build.yml * Update pyproject.toml * Update pyproject.toml * Python 3.11 Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: "build"
|
|
|
|
on:
|
|
pull_request:
|
|
schedule:
|
|
- cron: "0 0 * * *" # Run everyday
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.11
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip setuptools six wheel
|
|
python -m pip install pytest-cov -r requirements.txt
|
|
- name: Run tests
|
|
# See: #6591 for re-enabling tests on Python v3.11
|
|
run: pytest
|
|
--ignore=computer_vision/cnn_classification.py
|
|
--ignore=machine_learning/forecasting/run.py
|
|
--ignore=machine_learning/lstm/lstm_prediction.py
|
|
--ignore=quantum/
|
|
--ignore=project_euler/
|
|
--ignore=scripts/validate_solutions.py
|
|
--cov-report=term-missing:skip-covered
|
|
--cov=. .
|
|
- if: ${{ success() }}
|
|
run: scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
|