mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 16:27:02 +00:00
Upgrade GitHub Actions (#6236)
* Upgrade GitHub Actions * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
parent
9135a1f411
commit
0a0f4986e4
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -9,11 +9,11 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
- uses: actions/cache@v2
|
||||
python-version: 3.x
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
|
||||
|
|
6
.github/workflows/directory_writer.yml
vendored
6
.github/workflows/directory_writer.yml
vendored
|
@ -6,8 +6,10 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1 # v1, NOT v2
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: actions/checkout@v1 # v1, NOT v2 or v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.x
|
||||
- name: Write DIRECTORY.md
|
||||
run: |
|
||||
scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
|
||||
|
|
10
.github/workflows/pre-commit.yml
vendored
10
.github/workflows/pre-commit.yml
vendored
|
@ -6,17 +6,17 @@ jobs:
|
|||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/cache@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cache/pre-commit
|
||||
~/.cache/pip
|
||||
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
- uses: psf/black@21.4b0
|
||||
python-version: 3.x
|
||||
# - uses: psf/black@22.6.0
|
||||
- name: Install pre-commit
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
|
|
12
.github/workflows/project_euler.yml
vendored
12
.github/workflows/project_euler.yml
vendored
|
@ -14,8 +14,10 @@ jobs:
|
|||
project-euler:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.x
|
||||
- name: Install pytest and pytest-cov
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
|
@ -24,8 +26,10 @@ jobs:
|
|||
validate-solutions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.x
|
||||
- name: Install pytest and requests
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.1.0
|
||||
rev: v4.3.0
|
||||
hooks:
|
||||
- id: check-executables-have-shebangs
|
||||
- id: check-yaml
|
||||
|
@ -14,7 +14,7 @@ repos:
|
|||
- id: requirements-txt-fixer
|
||||
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 22.3.0
|
||||
rev: 22.6.0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
|
@ -26,7 +26,7 @@ repos:
|
|||
- --profile=black
|
||||
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v2.31.0
|
||||
rev: v2.34.0
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args:
|
||||
|
@ -42,7 +42,7 @@ repos:
|
|||
- --max-line-length=88
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v0.931
|
||||
rev: v0.961
|
||||
hooks:
|
||||
- id: mypy
|
||||
args:
|
||||
|
|
|
@ -444,7 +444,6 @@
|
|||
* [Scoring Functions](machine_learning/scoring_functions.py)
|
||||
* [Sequential Minimum Optimization](machine_learning/sequential_minimum_optimization.py)
|
||||
* [Similarity Search](machine_learning/similarity_search.py)
|
||||
* [Support Vector Machines](machine_learning/support_vector_machines.py)
|
||||
* [Word Frequency Functions](machine_learning/word_frequency_functions.py)
|
||||
|
||||
## Maths
|
||||
|
@ -910,6 +909,7 @@
|
|||
|
||||
## Scheduling
|
||||
* [First Come First Served](scheduling/first_come_first_served.py)
|
||||
* [Highest Response Ratio Next](scheduling/highest_response_ratio_next.py)
|
||||
* [Multi Level Feedback Queue](scheduling/multi_level_feedback_queue.py)
|
||||
* [Non Preemptive Shortest Job First](scheduling/non_preemptive_shortest_job_first.py)
|
||||
* [Round Robin](scheduling/round_robin.py)
|
||||
|
@ -995,6 +995,7 @@
|
|||
* [Credit Card Validator](strings/credit_card_validator.py)
|
||||
* [Detecting English Programmatically](strings/detecting_english_programmatically.py)
|
||||
* [Frequency Finder](strings/frequency_finder.py)
|
||||
* [Hamming Distance](strings/hamming_distance.py)
|
||||
* [Indian Phone Validator](strings/indian_phone_validator.py)
|
||||
* [Is Contains Unique Chars](strings/is_contains_unique_chars.py)
|
||||
* [Is Palindrome](strings/is_palindrome.py)
|
||||
|
@ -1016,6 +1017,7 @@
|
|||
* [Reverse Words](strings/reverse_words.py)
|
||||
* [Split](strings/split.py)
|
||||
* [Upper](strings/upper.py)
|
||||
* [Wave](strings/wave.py)
|
||||
* [Wildcard Pattern Matching](strings/wildcard_pattern_matching.py)
|
||||
* [Word Occurrence](strings/word_occurrence.py)
|
||||
* [Word Patterns](strings/word_patterns.py)
|
||||
|
|
Loading…
Reference in New Issue
Block a user