Skip to content

Commit 0a0f498

Browse files
cclaussgithub-actions
and
github-actions
authored
Upgrade GitHub Actions (#6236)
* Upgrade GitHub Actions * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent 9135a1f commit 0a0f498

File tree

6 files changed

+28
-20
lines changed

6 files changed

+28
-20
lines changed

Diff for: .github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-python@v2
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-python@v4
1414
with:
15-
python-version: "3.10"
16-
- uses: actions/cache@v2
15+
python-version: 3.x
16+
- uses: actions/cache@v3
1717
with:
1818
path: ~/.cache/pip
1919
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}

Diff for: .github/workflows/directory_writer.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v1 # v1, NOT v2
10-
- uses: actions/setup-python@v2
9+
- uses: actions/checkout@v1 # v1, NOT v2 or v3
10+
- uses: actions/setup-python@v4
11+
with:
12+
python-version: 3.x
1113
- name: Write DIRECTORY.md
1214
run: |
1315
scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md

Diff for: .github/workflows/pre-commit.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ jobs:
66
pre-commit:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/cache@v2
9+
- uses: actions/checkout@v3
10+
- uses: actions/cache@v3
1111
with:
1212
path: |
1313
~/.cache/pre-commit
1414
~/.cache/pip
1515
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
16-
- uses: actions/setup-python@v2
16+
- uses: actions/setup-python@v4
1717
with:
18-
python-version: "3.10"
19-
- uses: psf/black@21.4b0
18+
python-version: 3.x
19+
# - uses: psf/black@22.6.0
2020
- name: Install pre-commit
2121
run: |
2222
python -m pip install --upgrade pip

Diff for: .github/workflows/project_euler.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ jobs:
1414
project-euler:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions/setup-python@v2
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-python@v4
19+
with:
20+
python-version: 3.x
1921
- name: Install pytest and pytest-cov
2022
run: |
2123
python -m pip install --upgrade pip
@@ -24,8 +26,10 @@ jobs:
2426
validate-solutions:
2527
runs-on: ubuntu-latest
2628
steps:
27-
- uses: actions/checkout@v2
28-
- uses: actions/setup-python@v2
29+
- uses: actions/checkout@v3
30+
- uses: actions/setup-python@v4
31+
with:
32+
python-version: 3.x
2933
- name: Install pytest and requests
3034
run: |
3135
python -m pip install --upgrade pip

Diff for: .pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.1.0
3+
rev: v4.3.0
44
hooks:
55
- id: check-executables-have-shebangs
66
- id: check-yaml
@@ -14,7 +14,7 @@ repos:
1414
- id: requirements-txt-fixer
1515

1616
- repo: https://github.com/psf/black
17-
rev: 22.3.0
17+
rev: 22.6.0
1818
hooks:
1919
- id: black
2020

@@ -26,7 +26,7 @@ repos:
2626
- --profile=black
2727

2828
- repo: https://github.com/asottile/pyupgrade
29-
rev: v2.31.0
29+
rev: v2.34.0
3030
hooks:
3131
- id: pyupgrade
3232
args:
@@ -42,7 +42,7 @@ repos:
4242
- --max-line-length=88
4343

4444
- repo: https://github.com/pre-commit/mirrors-mypy
45-
rev: v0.931
45+
rev: v0.961
4646
hooks:
4747
- id: mypy
4848
args:

Diff for: DIRECTORY.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,6 @@
444444
* [Scoring Functions](machine_learning/scoring_functions.py)
445445
* [Sequential Minimum Optimization](machine_learning/sequential_minimum_optimization.py)
446446
* [Similarity Search](machine_learning/similarity_search.py)
447-
* [Support Vector Machines](machine_learning/support_vector_machines.py)
448447
* [Word Frequency Functions](machine_learning/word_frequency_functions.py)
449448

450449
## Maths
@@ -910,6 +909,7 @@
910909

911910
## Scheduling
912911
* [First Come First Served](scheduling/first_come_first_served.py)
912+
* [Highest Response Ratio Next](scheduling/highest_response_ratio_next.py)
913913
* [Multi Level Feedback Queue](scheduling/multi_level_feedback_queue.py)
914914
* [Non Preemptive Shortest Job First](scheduling/non_preemptive_shortest_job_first.py)
915915
* [Round Robin](scheduling/round_robin.py)
@@ -995,6 +995,7 @@
995995
* [Credit Card Validator](strings/credit_card_validator.py)
996996
* [Detecting English Programmatically](strings/detecting_english_programmatically.py)
997997
* [Frequency Finder](strings/frequency_finder.py)
998+
* [Hamming Distance](strings/hamming_distance.py)
998999
* [Indian Phone Validator](strings/indian_phone_validator.py)
9991000
* [Is Contains Unique Chars](strings/is_contains_unique_chars.py)
10001001
* [Is Palindrome](strings/is_palindrome.py)
@@ -1016,6 +1017,7 @@
10161017
* [Reverse Words](strings/reverse_words.py)
10171018
* [Split](strings/split.py)
10181019
* [Upper](strings/upper.py)
1020+
* [Wave](strings/wave.py)
10191021
* [Wildcard Pattern Matching](strings/wildcard_pattern_matching.py)
10201022
* [Word Occurrence](strings/word_occurrence.py)
10211023
* [Word Patterns](strings/word_patterns.py)

0 commit comments

Comments
 (0)