Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge #548

Merged
merged 301 commits into from
Dec 2, 2024
Merged

Merge #548

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
301 commits
Select commit Hold shift + click to select a range
895b2ef
Update pylint_kyu3.yml
ikostan Nov 12, 2024
7714dbc
Update lint_test_build_pipeline.yml
ikostan Nov 12, 2024
b9ac1da
Update pylint_kyu6.yml
ikostan Nov 12, 2024
85e9624
Update pylint_kyu2.yml
ikostan Nov 12, 2024
6ff291b
Update pylint_kyu3.yml
ikostan Nov 12, 2024
9a1eb67
Update pylint_kyu6.yml
ikostan Nov 12, 2024
95efd10
Update flake8_kyu2.yml
ikostan Nov 12, 2024
2998907
Update pylint_kyu5.yml
ikostan Nov 12, 2024
b31bc36
Update pylint_kyu4.yml
ikostan Nov 12, 2024
42603c6
Update flake8_kyu3.yml
ikostan Nov 12, 2024
a373da9
Update flake8_kyu4.yml
ikostan Nov 12, 2024
e45f7ad
Update .travis.yml
ikostan Nov 12, 2024
bdbaa9a
Update rocro.yml
ikostan Nov 12, 2024
922f2ee
Update config.yml
ikostan Nov 12, 2024
4dbf4a8
Update config.yml
ikostan Nov 12, 2024
43dd6a2
Create .yamllint.yaml
ikostan Nov 12, 2024
e238201
Update yamllint.yml
ikostan Nov 12, 2024
db2117f
Update .yamllint.yaml
ikostan Nov 12, 2024
8fcb48f
Update .yamllint.yaml
ikostan Nov 12, 2024
0fc280c
Create pytest.yml
ikostan Nov 12, 2024
dcdecd5
Update lint_test_build_pipeline.yml
ikostan Nov 12, 2024
6027a7c
Update lint_test_build_pipeline.yml
ikostan Nov 12, 2024
a693b8f
Update requirements.txt
ikostan Nov 12, 2024
50b86d9
Update pytest.yml
ikostan Nov 12, 2024
4cf5150
Update pytest.yml
ikostan Nov 12, 2024
69e0851
Update .coveragerc
ikostan Nov 12, 2024
1f3727e
Update test_evaluate.py
ikostan Nov 12, 2024
c02f7f9
Update test_evaluate.py
ikostan Nov 12, 2024
bf367da
Update pytest.yml
ikostan Nov 12, 2024
622a0ad
Update pytest.yml
ikostan Nov 12, 2024
1187309
Update pytest.yml
ikostan Nov 12, 2024
2c29a77
Update pytest.yml
ikostan Nov 12, 2024
427a58d
Update log_func.py
ikostan Nov 12, 2024
8dd8556
Update pytest.yml
ikostan Nov 12, 2024
735723c
Update pytest.yml
ikostan Nov 12, 2024
2d55c4e
Update pytest.yml
ikostan Nov 12, 2024
6738b27
Update pytest.yml
ikostan Nov 12, 2024
fa651ba
Update pytest.yml
ikostan Nov 12, 2024
3783ee5
Update pytest.yml
ikostan Nov 12, 2024
22421d8
Update .coveragerc
ikostan Nov 12, 2024
e3b9e29
Update pytest.yml
ikostan Nov 12, 2024
4593720
Update evaluate.py
ikostan Nov 12, 2024
e5de58c
Update walker_class.py
ikostan Nov 12, 2024
0eb2390
Update sudoku_by_row.py
ikostan Nov 12, 2024
4ea6b41
Update evaluate.py
ikostan Nov 12, 2024
cef72f7
Update walker_class.py
ikostan Nov 12, 2024
5fa2de5
Update walker_class.py
ikostan Nov 12, 2024
ef6c895
Update sudoku_by_row.py
ikostan Nov 12, 2024
0da6396
Update walker_class.py
ikostan Nov 12, 2024
09b8675
Update test_line_negative.py
ikostan Nov 12, 2024
e6b0ef5
Update test_line_positive.py
ikostan Nov 12, 2024
1a51196
Update test_walker.py
ikostan Nov 12, 2024
4100658
Update test_advice.py
ikostan Nov 12, 2024
fe853a5
Update test_century.py
ikostan Nov 12, 2024
3df465d
Update test_century.py
ikostan Nov 12, 2024
9815d3f
Update lint_test_build_pipeline.yml
ikostan Nov 15, 2024
f547e22
Create codeclimate_coverage.yml
ikostan Nov 15, 2024
faa3746
Update pytest.yml
ikostan Nov 15, 2024
dbcc78c
Update codeclimate_coverage.yml
ikostan Nov 15, 2024
3b1d54d
Update codeclimate_coverage.yml
ikostan Nov 15, 2024
9b3de4e
Update codeclimate_coverage.yml
ikostan Nov 15, 2024
bd61435
Update codeclimate_coverage.yml
ikostan Nov 15, 2024
5bf27f4
Update pytest.yml
ikostan Nov 15, 2024
c2b1ff3
Update codeclimate_coverage.yml
ikostan Nov 15, 2024
30822a1
Update codeclimate_coverage.yml
ikostan Nov 15, 2024
f6ee3d2
Update lint_test_build_pipeline.yml
ikostan Nov 15, 2024
5f09bef
Create codecov.yml
ikostan Nov 15, 2024
c9fb2fe
Update pytest.yml
ikostan Nov 15, 2024
dc29912
Update codeclimate_coverage.yml
ikostan Nov 15, 2024
2239995
Update codecov.yml
ikostan Nov 15, 2024
839dd51
Update README.md
ikostan Nov 15, 2024
e1d926c
Bump DavidAnson/markdownlint-cli2-action in /.github/workflows
dependabot[bot] Nov 15, 2024
6d18488
Bump codecov/codecov-action from 4.6.0 to 5.0.2 in /.github/workflows
dependabot[bot] Nov 15, 2024
00c4501
Merge pull request #527 from iKostanOrg/dependabot/github_actions/dot…
ikostan Nov 16, 2024
6da1f01
Merge pull request #528 from iKostanOrg/dependabot/github_actions/dot…
ikostan Nov 16, 2024
6d5597c
Update lint_test_build_pipeline.yml
ikostan Nov 17, 2024
d076af3
Create codeql.yml
ikostan Nov 17, 2024
50bcae1
Create snyk.yml
ikostan Nov 18, 2024
dbb2434
Update lint_test_build_pipeline.yml
ikostan Nov 18, 2024
aea4e67
Update lint_test_build_pipeline.yml
ikostan Nov 18, 2024
d674f1b
Update snyk.yml
ikostan Nov 18, 2024
30e0fcc
Update README.md
ikostan Nov 18, 2024
9d63366
Update _codeql.yml
ikostan Nov 18, 2024
470e962
Create codeql.yml
ikostan Nov 18, 2024
d20b9a6
Update codeql.yml
ikostan Nov 18, 2024
5fd6462
Update codeql.yml
ikostan Nov 18, 2024
865a4b3
Update codeql.yml
ikostan Nov 18, 2024
053c4ae
Create snyk.yml
ikostan Nov 18, 2024
6e213e6
Delete _codeql.yml
ikostan Nov 18, 2024
1fcebb1
Delete snyk.yml
ikostan Nov 18, 2024
22eebab
Update lint_test_build_pipeline.yml
ikostan Nov 18, 2024
b17e5d1
Update __snyk-security.yml
ikostan Nov 18, 2024
9c9a5e0
Update lint_test_build_pipeline.yml
ikostan Nov 18, 2024
ad6f87f
Delete __snyk-security.yml
ikostan Nov 18, 2024
479b9ab
Update lint_test_build_pipeline.yml
ikostan Nov 18, 2024
edc097c
Delete codeql.yml
ikostan Nov 18, 2024
4e2bf72
Create codeql.yml
ikostan Nov 18, 2024
db40381
Update lint_test_build_pipeline.yml
ikostan Nov 18, 2024
e4d76da
Create snyk.yml
ikostan Nov 18, 2024
782205e
Update codeql.yml
ikostan Nov 18, 2024
b06d3cb
Update snyk.yml
ikostan Nov 18, 2024
d0c093f
Update lint_test_build_pipeline.yml
ikostan Nov 18, 2024
6a38bb5
Update lint_test_build_pipeline.yml
ikostan Nov 18, 2024
87393cf
Update README.md
ikostan Nov 19, 2024
f868115
Bump codecov/codecov-action from 5.0.2 to 5.0.5 in /.github/workflows
dependabot[bot] Nov 20, 2024
af9d266
Merge pull request #529 from iKostanOrg/dependabot/github_actions/dot…
ikostan Nov 21, 2024
53b5bd4
Create __init__.py
ikostan Nov 21, 2024
eb1241c
Create README.md
ikostan Nov 21, 2024
6558584
Update README.md
ikostan Nov 21, 2024
f327b02
Create test_solution.py
ikostan Nov 21, 2024
c759103
Create solution.py
ikostan Nov 21, 2024
1c2694f
Merge branch 'master' of https://github.com/iKostanOrg/codewars
ikostan Nov 21, 2024
4dc32dd
Docs
ikostan Nov 21, 2024
4228eca
Update README.md
ikostan Nov 21, 2024
78dd8b1
Update README.md
ikostan Nov 21, 2024
34452ae
Update test_solution.py
ikostan Nov 21, 2024
9cc182f
shortest_job_first(
ikostan Nov 21, 2024
1b808a4
Update solution.py
ikostan Nov 21, 2024
bf5dd3d
Bump codecov/codecov-action from 5.0.5 to 5.0.7 in /.github/workflows
dependabot[bot] Nov 21, 2024
f700b4a
Update solution.py
ikostan Nov 22, 2024
330ec6c
Update solution.py
ikostan Nov 22, 2024
74c59ee
Merge pull request #530 from iKostanOrg/dependabot/github_actions/dot…
ikostan Nov 22, 2024
abe3f39
Merge pull request #531 from iKostanOrg/master
ikostan Nov 22, 2024
52ea8c0
kyu_5.alphabet_wars_nuclear_strike
ikostan Nov 22, 2024
ce6d57c
Update kyu_5.rst
ikostan Nov 22, 2024
57ceaab
Update kyu_5.alphabet_wars_nuclear_strike.module.rst
ikostan Nov 22, 2024
fa2dc5b
count_ip_addresses
ikostan Nov 22, 2024
aed409e
/home/docs/checkouts/readthedocs.org/user_builds/codewars/checkouts/5…
ikostan Nov 22, 2024
3a9a917
kyu_2 docs refactoring
ikostan Nov 23, 2024
e7c375d
Update kyu_2.rst
ikostan Nov 23, 2024
79fb071
kyu_2
ikostan Nov 23, 2024
40a6690
Update kyu_2.readme.rst
ikostan Nov 23, 2024
4e2ad53
Update kyu_2.evaluate_mathematical_expression.readme.rst
ikostan Nov 23, 2024
eecf463
/kyu_2/
ikostan Nov 23, 2024
1be2980
/home/docs/checkouts/readthedocs.org/user_builds/codewars/checkouts/5…
ikostan Nov 23, 2024
0042c6f
Kyu_3
ikostan Nov 23, 2024
7e5eedf
kyu_3
ikostan Nov 23, 2024
0a0b325
Merge pull request #532 from iKostanOrg/Documentation
ikostan Nov 23, 2024
5f35ca7
kyu_4
ikostan Nov 23, 2024
7730130
Merge pull request #533 from iKostanOrg/Documentation
ikostan Nov 23, 2024
51e5b4b
kyu_5
ikostan Nov 23, 2024
394ad86
link fixes
ikostan Nov 23, 2024
7f07704
kyu_5 fixes
ikostan Nov 23, 2024
2897ef8
Merge pull request #534 from iKostanOrg/Documentation
ikostan Nov 23, 2024
7d7827b
directions_reduction
ikostan Nov 23, 2024
801eb4e
extract_the_domain_name_from_url
ikostan Nov 23, 2024
52e8bec
fibonacci_streaming
ikostan Nov 23, 2024
7b15e09
find_the_safest_places_in_town
ikostan Nov 23, 2024
1372c3a
find_the_smallest
ikostan Nov 23, 2024
11eb562
Merge pull request #535 from iKostanOrg/Documentation
ikostan Nov 23, 2024
c8e856e
first_non_repeating_character
ikostan Nov 24, 2024
3d3354d
Update kyu_5.first_non_repeating_character.module.rst
ikostan Nov 24, 2024
833d9c5
flatten
ikostan Nov 24, 2024
6446361
Merge pull request #536 from iKostanOrg/Documentation
ikostan Nov 24, 2024
8d67f6c
human_readable_time
ikostan Nov 24, 2024
1e6382a
integers_recreation_one
ikostan Nov 24, 2024
2f93ae5
Merge pull request #537 from iKostanOrg/Documentation
ikostan Nov 24, 2024
13653fa
josephus_survivor
ikostan Nov 24, 2024
3aba70a
Merge pull request #538 from iKostanOrg/Documentation
ikostan Nov 24, 2024
500183f
master_your_primes_sieve_with_memoization
ikostan Nov 24, 2024
6bc8c59
moving_zeros_to_the_end
ikostan Nov 24, 2024
8cacc96
Merge pull request #539 from iKostanOrg/Documentation
ikostan Nov 24, 2024
189adfe
Merge pull request #540 from iKostanOrg/master
ikostan Nov 24, 2024
14a0cb4
Update test_solution.py
ikostan Nov 24, 2024
b69f922
Update test_solution.py
ikostan Nov 24, 2024
0525e8a
Sums of Parts
ikostan Nov 24, 2024
acda7a8
Update solution.py
ikostan Nov 24, 2024
5f926a0
final solution
ikostan Nov 24, 2024
c3e94b1
Variable name n doesn't conform to snake_case naming style
ikostan Nov 24, 2024
0b88681
Variable name n doesn't conform to snake_case naming style
ikostan Nov 24, 2024
43f88dc
Update test_solution.py
ikostan Nov 24, 2024
ff3061e
Create .codeclimate.yml
ikostan Nov 24, 2024
f015cfc
Update README.md
ikostan Nov 24, 2024
8f44505
Update README.md
ikostan Nov 24, 2024
50a9b20
Create kyu_6.sums_of_parts.rst
ikostan Nov 24, 2024
ed8ea49
Update kyu_6.rst
ikostan Nov 24, 2024
59f8bce
Allure report
ikostan Nov 24, 2024
32970ca
Update test_solution.py
ikostan Nov 24, 2024
8762a9f
New allure report
ikostan Nov 24, 2024
92d8694
Merge pull request #541 from iKostanOrg/kyu6
ikostan Nov 24, 2024
19c3da0
Update README.md
ikostan Nov 24, 2024
94b28a8
Merge branch 'master' of https://github.com/iKostanOrg/codewars
ikostan Nov 24, 2024
84410f9
Update .codeclimate.yml
ikostan Nov 24, 2024
db976f1
Update .codeclimate.yml
ikostan Nov 24, 2024
b50895c
Update .yamllint.yaml
ikostan Nov 24, 2024
99a60d0
Update README.md
ikostan Nov 24, 2024
3421c73
Update README.md
ikostan Nov 24, 2024
40b9719
Update test_unique_in_order.py
ikostan Nov 25, 2024
42b1b6d
Valid Braces
ikostan Nov 25, 2024
c2a6f15
Update README.md
ikostan Nov 25, 2024
71166f9
Update test_valid_braces.py
ikostan Nov 25, 2024
40d6569
Update test_valid_braces.py
ikostan Nov 25, 2024
b872cc7
Update valid_braces.py
ikostan Nov 25, 2024
cfef58f
Update test_valid_braces.py
ikostan Nov 25, 2024
d82f688
Update test_valid_braces.py
ikostan Nov 26, 2024
328a725
Update valid_braces.py
ikostan Nov 26, 2024
0c67091
Update valid_braces.py
ikostan Nov 26, 2024
8318beb
Update valid_braces.py
ikostan Nov 26, 2024
3f51eaf
Update valid_braces.py
ikostan Nov 27, 2024
15a2c3d
Update valid_braces.py
ikostan Nov 28, 2024
478bfcc
Update valid_braces.py
ikostan Nov 28, 2024
73e23db
Update valid_braces.py
ikostan Nov 28, 2024
639190b
Update valid_braces.py
ikostan Nov 28, 2024
18d8508
Update valid_braces.py
ikostan Nov 28, 2024
4872e80
Update valid_braces.py
ikostan Nov 28, 2024
f425eaf
Update valid_braces.py
ikostan Nov 28, 2024
db21ab8
Update valid_braces.py
ikostan Nov 28, 2024
6b7111b
Allure summary
ikostan Nov 28, 2024
96fb464
Merge pull request #542 from iKostanOrg/kyu6
ikostan Nov 28, 2024
ab7708c
Update README.md
ikostan Nov 28, 2024
8723bc1
Merge pull request #543 from iKostanOrg/master
ikostan Nov 30, 2024
8696585
Valid Parentheses
ikostan Nov 30, 2024
983584e
Merge branch 'kyu7' of https://github.com/iKostanOrg/codewars into kyu7
ikostan Nov 30, 2024
80d5b1c
Create README.md
ikostan Nov 30, 2024
313929a
Solution ready
ikostan Nov 30, 2024
c1cfe59
Update solution.py
ikostan Nov 30, 2024
6741ceb
Update solution.py
ikostan Nov 30, 2024
18c197a
Update test_valid_parentheses.py
ikostan Nov 30, 2024
69f07a7
Update test_valid_parentheses.py
ikostan Nov 30, 2024
ab6ed0c
@sourcery-ai
ikostan Nov 30, 2024
4f9d623
Update solution.py
ikostan Nov 30, 2024
2c6a0e6
Update test_valid_parentheses.py
ikostan Nov 30, 2024
d917260
Update test_valid_parentheses.py
ikostan Nov 30, 2024
14b2efc
Update solution.py
ikostan Dec 1, 2024
d7a5a1e
Update test_valid_parentheses.py
ikostan Dec 1, 2024
d878cbc
Update test_valid_parentheses.py
ikostan Dec 1, 2024
c9dba87
Update solution.py
ikostan Dec 1, 2024
be39032
Update solution.py
ikostan Dec 1, 2024
6f0f5ac
Update solution.py
ikostan Dec 1, 2024
cde890e
Update solution.py
ikostan Dec 1, 2024
d87e55d
Allure test report
ikostan Dec 1, 2024
f128538
Merge pull request #544 from iKostanOrg/kyu7
ikostan Dec 1, 2024
b8361e3
Merge pull request #546 from iKostanOrg/master
ikostan Dec 2, 2024
817d43a
Create pydocstyle_kyu2.yml
ikostan Dec 2, 2024
a295ca2
Create .pydocstyle
ikostan Dec 2, 2024
1f9ca13
Update pydocstyle_kyu2.yml
ikostan Dec 2, 2024
7fc97ea
Update .pydocstyle
ikostan Dec 2, 2024
e6b5ba3
Update .pydocstyle
ikostan Dec 2, 2024
eea57b6
Update .pydocstyle
ikostan Dec 2, 2024
b2f2cff
Update pydocstyle_kyu2.yml
ikostan Dec 2, 2024
c65560e
Update .pydocstyle
ikostan Dec 2, 2024
b434092
Update __init__.py
ikostan Dec 2, 2024
41681a1
Docstring for __init_ files
ikostan Dec 2, 2024
2594062
Update test_evaluate.py
ikostan Dec 2, 2024
d1b41c8
Update evaluate.py
ikostan Dec 2, 2024
fabc1c3
Update evaluate.py
ikostan Dec 2, 2024
90ef1ba
Update evaluate.py
ikostan Dec 2, 2024
0c05c7d
Update evaluate.py
ikostan Dec 2, 2024
92981fe
Update evaluate.py
ikostan Dec 2, 2024
e3a69ea
Merge pull request #547 from iKostanOrg/kyu2
ikostan Dec 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 13 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
version: 2.1 # use CircleCI 2.1
---
version: 2.1 # use CircleCI 2.1
orbs:
python: circleci/[email protected]

jobs: # A basic unit of work in a run
jobs: # A basic unit of work in a run

build: # runs not using Workflows must have a `build` job as entry point
build: # runs not using Workflows must have a `build` job as entry point
# How to specify Python version in circleCI orb?
# https://discuss.circleci.com/t/how-to-specify-python-version-in-circleci-orb/47322/3
executor:
name: python/default
# use Python 3.10
tag: "3.12"

steps: # steps that comprise the `build` job
steps: # steps that comprise the `build` job
- checkout
- run:
command:
python --version
python --version
name: Check python version
- run:
command:
Expand Down Expand Up @@ -45,10 +46,12 @@ jobs: # A basic unit of work in a run
command:
python -m pytest
name: Run tests with pytest

- store_test_results: # Upload test results for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
# Upload test results for display in Test Summary:
# https://circleci.com/docs/2.0/collect-test-data/
- store_test_results:
path: test-results/

- store_artifacts: # Upload test summary for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
# Upload test summary for display in Artifacts:
# https://circleci.com/docs/2.0/artifacts/
- store_artifacts:
path: test-results/
destination: tr1
destination: tr1
42 changes: 21 additions & 21 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
---
engines:
duplication:
enabled: true
enabled: true
metric:
enabled: true
enabled: true
coverage:
enabled: true
enabled: true
prospector:
enabled: true
pylint:
enabled: true
python_version: 3.7
languages:
python:
extensions:
- '.py'
python:
extensions:
- '.py'
markup:
extensions:
- '.md'
extensions:
- '.md'
exclude_paths:
- 'docs/**'
- 'allure-report/**'
- 'img/**'
- '.circleci/**'
- '.circleci/**'
- '.github/**'
- '*__init__.py'
- 'rocro.yml'
- 'requirements.txt'
- 'pytest.ini'
- '.travis.yml'
- '.gitignore'
- '.gitattributes'
- 'docs/**'
- 'allure-report/**'
- 'img/**'
- '.circleci/**'
- '.circleci/**'
- '.github/**'
- '*__init__.py'
- 'rocro.yml'
- 'requirements.txt'
- 'pytest.ini'
- '.travis.yml'
- '.gitignore'
- '.gitattributes'
10 changes: 10 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
engines:
# ... CONFIG CONTENT ...
pylint:
enabled: true
# ... CONFIG CONTENT ...
checks:
import-error:
enabled: false
# ... CONFIG CONTENT ...
12 changes: 12 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,15 @@ omit =
__init__*
*.md
docs/*
venv/*
*.gif
*.html
/tests/*
test_*

[report]
; Regexes for lines to exclude from consideration

exclude_also =
; Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ updates:
interval: "daily"
# Labels on pull requests for version updates only
labels:
- "GitHub actions versions"
- "GitHub actions versions"
47 changes: 47 additions & 0 deletions .github/workflows/codeclimate_coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Code Climate Coverage Report

on: # yamllint disable-line rule:truthy
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
workflow_call:
secrets:
cc_test_reporter_id:
required: true

jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.X"]
steps:
- uses: actions/checkout@main
- name: Setup Python
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install pytest
pip install -r requirements.txt
pip install pytest-cov
- name: Check PYTHONPATH
run: |
pwd
export PYTHONPATH=.:$PYTHONPATH
- name: Upload coverage to Code Climate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
# yamllint disable rule:line-length
coverageCommand: python -m pytest . -v --cov-report term-missing --cov-report=xml --cov=./
# yamllint enable rule:line-length
debug: true
50 changes: 50 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: Codecov Coverage Report

on: # yamllint disable-line rule:truthy
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
# Why is Codecov upload step in GitHub Actions not finding the token?
# https://stackoverflow.com/questions/78298827/why-is-codecov-upload-step-in-github-actions-not-finding-the-token
workflow_call:
secrets:
codecov_token:
required: true
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
steps:
- uses: actions/checkout@main
- name: Setup Python
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}
- name: Install prerequisites
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
- name: Install pytest, pytest-cov
run: |
pip install pytest
pip install pytest-cov
- name: Generate coverage report
# yamllint disable rule:line-length
run: |
python -c "import os; print(os.getcwd())"
python -m pytest . -v --cov-report term-missing --cov-report=xml --cov=./
# yamllint enable rule:line-length
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.codecov_token }}
files: coverage.xml
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
98 changes: 98 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
---
# yamllint disable
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#

name: "CodeQL"

on: # yamllint disable-line rule:truthy
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
workflow_call:

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: python
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Check to make sure that the module is in your Python path
run: |
echo $PYTHONPATH
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
4 changes: 2 additions & 2 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Flake8

on:
on: # yamllint disable-line rule:truthy
push:
branches:
- 'utils'
Expand Down Expand Up @@ -46,4 +46,4 @@ jobs:
run: |
flake8 . --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
flake8 . --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics
# yamllint enable rule:line-length
# yamllint enable rule:line-length
4 changes: 2 additions & 2 deletions .github/workflows/flake8_kyu2.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Flake8 for kyu2

on:
on: # yamllint disable-line rule:truthy
push:
branches:
- 'kyu2'
Expand Down Expand Up @@ -44,4 +44,4 @@ jobs:
run: |
flake8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics ./kyu_2
flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_2
# yamllint enable rule:line-length
# yamllint enable rule:line-length
4 changes: 2 additions & 2 deletions .github/workflows/flake8_kyu3.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Flake8 for kyu3

on:
on: # yamllint disable-line rule:truthy
push:
branches:
- 'kyu3'
Expand Down Expand Up @@ -44,4 +44,4 @@ jobs:
run: |
flake8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics ./kyu_3
flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_3
# yamllint enable rule:line-length
# yamllint enable rule:line-length
Loading
Loading