Skip to content

Commit 26a2874

Browse files
committed
Update Github CI configuration (#177)
* Update Github CI configuration * Update dependencies * Fix lint error * Add flake8 configuration * Update pytest
1 parent b08b540 commit 26a2874

5 files changed

Lines changed: 25 additions & 16 deletions

File tree

‎.github/workflows/Python.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
19-
- name: Set up Python 3.10
20-
uses: actions/setup-python@v3
18+
- uses: actions/checkout@v4
19+
- name: Set up Python 3.14
20+
uses: actions/setup-python@v6
2121
with:
22-
python-version: "3.10"
22+
python-version: "3.14"
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ to prevent obscuring the function and logic of the algorithms / data-structures.
4040
### Local development
4141

4242
- Install `pyenv`
43-
- Install current Python version: `pyenv install 3.10`
44-
- Set global Python version: `pyenv global 3.10`
43+
- Install current Python version: `pyenv install 3.12`
44+
- Set global Python version: `pyenv global 3.12`
4545
- Initialize virtual environment: `python -m venv .venv`
46-
- Activate: source `.venv/bin/activate`
47-
- Install packages: `pip3 -r requirements.txt`
46+
- Activate: `source .venv/bin/activate`
47+
- Install packages: `pip3 install -r requirements.txt`
4848

4949
### VS Code Dev Container
5050

‎binary_tree/tests/test_pre_order_traversal.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from binary_tree.preorder_traversal import preorder_traversal_iterative, preorder_traversal_morris,\
1+
from binary_tree.preorder_traversal import preorder_traversal_iterative, preorder_traversal_morris, \
22
preorder_traversal_recursive
33
from test_helpers.test_helpers import get_binary_tree
44

‎requirements.txt‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
attrs==21.4.0
2-
flake8==4.0.1
2+
build==1.4.0
3+
click==8.3.1
4+
flake8==7.3.0
35
iniconfig==1.1.1
4-
mccabe==0.6.1
5-
packaging==21.3
6-
pluggy==1.0.0
6+
mccabe==0.7.0
7+
packaging==26.0
8+
pluggy==1.6.0
79
py==1.11.0
8-
pycodestyle==2.8.0
9-
pyflakes==2.4.0
10+
pycodestyle==2.14.0
11+
pyflakes==3.4.0
12+
Pygments==2.19.2
1013
pyparsing==3.0.9
11-
pytest==7.1.2
14+
pyproject_hooks==1.2.0
15+
pytest==9.0.2
16+
setuptools==82.0.1
1217
tomli==2.0.1
18+
wheel==0.46.3

‎setup.cfg‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
3+
exclude = .git,__pycache__,.venv

0 commit comments

Comments
 (0)