-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #601 from iKostanOrg/master
Merge from master
- Loading branch information
Showing
8,421 changed files
with
30,977 additions
and
12,729 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
name: Codacy Coverage Reporter | ||
|
||
# Source: | ||
# https://github.com/codacy/codacy-coverage-reporter-action | ||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- 'master' | ||
workflow_call: | ||
|
||
jobs: | ||
codacy-coverage-reporter: | ||
runs-on: ubuntu-latest | ||
name: codacy-coverage-reporter | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- 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 | ||
# You must now upload using a token. | ||
# https://app.codecov.io/gh/iKostanOrg/codewars/tests/new | ||
# 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: Run codacy-coverage-reporter | ||
run: | | ||
export CODACY_ORGANIZATION_PROVIDER=gh \ | ||
export CODACY_USERNAME=iKostanOrg \ | ||
export CODACY_PROJECT_NAME=codewars | ||
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \ | ||
--api-token ${{ secrets.CODACY_API_TOKEN }} \ | ||
--language Python \ | ||
--coverage-reports /home/runner/work/codewars/codewars/coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,15 +36,15 @@ jobs: | |
pip install pytest | ||
pip install pytest-cov | ||
- name: Generate coverage report | ||
# You must now upload using a token. | ||
# https://app.codecov.io/gh/iKostanOrg/codewars/tests/new | ||
# 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=./ | ||
python -m pytest . -v --cov-report term-missing --cov-report=xml --cov=./ --junitxml=junit.xml -o junit_family=legacy --debug | ||
# yamllint enable rule:line-length | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
token: ${{ secrets.codecov_token }} | ||
files: coverage.xml | ||
fail_ci_if_error: true # optional (default = false) | ||
verbose: true # optional (default = false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
name: Flake8 for kyu7 | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- 'kyu7' | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.x"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
# This is the version of the action for setting up Python, | ||
# not the Python version. | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# You can test your matrix by printing the current | ||
# Python version | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install -r requirements.txt | ||
pip install flake8 | ||
- name: Check to make sure that the module is in your Python path | ||
run: | | ||
echo $PYTHONPATH | ||
- name: Lint with flake8 | ||
# yamllint disable rule:line-length | ||
# stop the build if there are Python syntax errors or undefined names | ||
# exit-zero treats all errors as warnings. | ||
# The GitHub editor is 127 chars wide | ||
run: | | ||
flake8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics ./kyu_7 | ||
flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_7 | ||
# yamllint enable rule:line-length |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
name: Flake8 for kyu8 | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- 'kyu8' | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.x"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
# This is the version of the action for setting up Python, | ||
# not the Python version. | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# You can test your matrix by printing the current | ||
# Python version | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install -r requirements.txt | ||
pip install flake8 | ||
- name: Check to make sure that the module is in your Python path | ||
run: | | ||
echo $PYTHONPATH | ||
- name: Lint with flake8 | ||
# yamllint disable rule:line-length | ||
# stop the build if there are Python syntax errors or undefined names | ||
# exit-zero treats all errors as warnings. | ||
# The GitHub editor is 127 chars wide | ||
run: | | ||
flake8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics ./kyu_8 | ||
flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_8 | ||
# yamllint enable rule:line-length |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
name: pydocstyle | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- 'utils' | ||
- 'none' | ||
workflow_call: | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.x"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
# This is the version of the action for setting up Python, | ||
# not the Python version. | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# You can test your matrix by printing the current Python version | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install -r requirements.txt | ||
pip install pydocstyle | ||
pip install types-requests | ||
- name: Check to make sure that the module is in your Python path | ||
run: | | ||
echo $PYTHONPATH | ||
- name: Check pydocstyle version | ||
run: | | ||
pydocstyle --version | ||
# Pydocstyle testing (Guide) | ||
# https://www.pydocstyle.org/en/stable/usage.html#cli-usage | ||
- name: Doc style checking with pydocstyle for kyu_2 | ||
run: | | ||
pydocstyle --verbose --explain --count kyu_2 | ||
- name: Doc style checking with pydocstyle for kyu_3 | ||
run: | | ||
pydocstyle --verbose --explain --count kyu_3 | ||
- name: Doc style checking with pydocstyle for kyu_4 | ||
run: | | ||
pydocstyle --verbose --explain --count kyu_4 | ||
- name: Doc style checking with pydocstyle for kyu_5 | ||
run: | | ||
pydocstyle --verbose --explain --count kyu_5 | ||
- name: Doc style checking with pydocstyle for kyu_6 | ||
run: | | ||
pydocstyle --verbose --explain --count kyu_6 | ||
- name: Doc style checking with pydocstyle for kyu_7 | ||
run: | | ||
pydocstyle --verbose --explain --count kyu_7 | ||
- name: Doc style checking with pydocstyle for kyu_8 | ||
run: | | ||
pydocstyle --verbose --explain --count kyu_8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
name: pydocstyle for kyu7 | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- 'kyu7' | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.x"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
# This is the version of the action for setting up Python, | ||
# not the Python version. | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# You can test your matrix by printing the current Python version | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install -r requirements.txt | ||
pip install pydocstyle | ||
pip install types-requests | ||
- name: Check to make sure that the module is in your Python path | ||
run: | | ||
echo $PYTHONPATH | ||
- name: Check pydocstyle version | ||
run: | | ||
pydocstyle --version | ||
- name: Doc style checking with pydocstyle | ||
# Pydocstyle testing (Guide) | ||
# https://www.pydocstyle.org/en/stable/usage.html#cli-usage | ||
run: | | ||
pydocstyle --verbose --explain --count kyu_7 |
Oops, something went wrong.