Skip to content

Commit a31edd4

Browse files
cclaussgithub-actions
and
github-actions
authored
Test on Python 3.11 (#6591)
* 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>
1 parent b2165a6 commit a31edd4

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

Diff for: .github/workflows/build.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-python@v4
1414
with:
15-
python-version: 3.x
15+
python-version: 3.11
1616
- uses: actions/cache@v3
1717
with:
1818
path: ~/.cache/pip
@@ -22,6 +22,15 @@ jobs:
2222
python -m pip install --upgrade pip setuptools six wheel
2323
python -m pip install pytest-cov -r requirements.txt
2424
- name: Run tests
25-
run: pytest --ignore=project_euler/ --ignore=scripts/validate_solutions.py --cov-report=term-missing:skip-covered --cov=. .
25+
# See: #6591 for re-enabling tests on Python v3.11
26+
run: pytest
27+
--ignore=computer_vision/cnn_classification.py
28+
--ignore=machine_learning/forecasting/run.py
29+
--ignore=machine_learning/lstm/lstm_prediction.py
30+
--ignore=quantum/
31+
--ignore=project_euler/
32+
--ignore=scripts/validate_solutions.py
33+
--cov-report=term-missing:skip-covered
34+
--cov=. .
2635
- if: ${{ success() }}
2736
run: scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md

Diff for: CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pre-commit run --all-files --show-diff-on-failure
6666

6767
We want your work to be readable by others; therefore, we encourage you to note the following:
6868

69-
- Please write in Python 3.10+. For instance: `print()` is a function in Python 3 so `print "Hello"` will *not* work but `print("Hello")` will.
69+
- Please write in Python 3.11+. For instance: `print()` is a function in Python 3 so `print "Hello"` will *not* work but `print("Hello")` will.
7070
- Please focus hard on the naming of functions, classes, and variables. Help your reader by using __descriptive names__ that can help you to remove redundant comments.
7171
- Single letter variable names are *old school* so please avoid them unless their life only spans a few lines.
7272
- Expand acronyms because `gcd()` is hard to understand but `greatest_common_divisor()` is not.

Diff for: DIRECTORY.md

+1
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@
328328
* [Electric Conductivity](electronics/electric_conductivity.py)
329329
* [Electric Power](electronics/electric_power.py)
330330
* [Electrical Impedance](electronics/electrical_impedance.py)
331+
* [Ind Reactance](electronics/ind_reactance.py)
331332
* [Ohms Law](electronics/ohms_law.py)
332333
* [Resistor Equivalence](electronics/resistor_equivalence.py)
333334
* [Resonant Frequency](electronics/resonant_frequency.py)

Diff for: requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ opencv-python
88
pandas
99
pillow
1010
projectq
11-
qiskit
11+
qiskit; python_version < "3.11"
1212
requests
1313
rich
1414
scikit-fuzzy
1515
sklearn
16-
statsmodels
16+
statsmodels; python_version < "3.11"
1717
sympy
18-
tensorflow
18+
tensorflow; python_version < "3.11"
1919
texttable
2020
tweepy
2121
xgboost

0 commit comments

Comments
 (0)