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:
Christian Clauss 2022-07-07 05:25:25 +02:00 committed by GitHub
parent 9135a1f411
commit 0a0f4986e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 28 additions and 20 deletions

View File

@ -9,11 +9,11 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with: with:
python-version: "3.10" python-version: 3.x
- uses: actions/cache@v2 - uses: actions/cache@v3
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}

View File

@ -6,8 +6,10 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 # v1, NOT v2 - uses: actions/checkout@v1 # v1, NOT v2 or v3
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Write DIRECTORY.md - name: Write DIRECTORY.md
run: | run: |
scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md

View File

@ -6,17 +6,17 @@ jobs:
pre-commit: pre-commit:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/cache@v2 - uses: actions/cache@v3
with: with:
path: | path: |
~/.cache/pre-commit ~/.cache/pre-commit
~/.cache/pip ~/.cache/pip
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with: with:
python-version: "3.10" python-version: 3.x
- uses: psf/black@21.4b0 # - uses: psf/black@22.6.0
- name: Install pre-commit - name: Install pre-commit
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip

View File

@ -14,8 +14,10 @@ jobs:
project-euler: project-euler:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install pytest and pytest-cov - name: Install pytest and pytest-cov
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
@ -24,8 +26,10 @@ jobs:
validate-solutions: validate-solutions:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install pytest and requests - name: Install pytest and requests
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip

View File

@ -1,6 +1,6 @@
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0 rev: v4.3.0
hooks: hooks:
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
- id: check-yaml - id: check-yaml
@ -14,7 +14,7 @@ repos:
- id: requirements-txt-fixer - id: requirements-txt-fixer
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 22.3.0 rev: 22.6.0
hooks: hooks:
- id: black - id: black
@ -26,7 +26,7 @@ repos:
- --profile=black - --profile=black
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v2.31.0 rev: v2.34.0
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: args:
@ -42,7 +42,7 @@ repos:
- --max-line-length=88 - --max-line-length=88
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.931 rev: v0.961
hooks: hooks:
- id: mypy - id: mypy
args: args:

View File

@ -444,7 +444,6 @@
* [Scoring Functions](machine_learning/scoring_functions.py) * [Scoring Functions](machine_learning/scoring_functions.py)
* [Sequential Minimum Optimization](machine_learning/sequential_minimum_optimization.py) * [Sequential Minimum Optimization](machine_learning/sequential_minimum_optimization.py)
* [Similarity Search](machine_learning/similarity_search.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) * [Word Frequency Functions](machine_learning/word_frequency_functions.py)
## Maths ## Maths
@ -910,6 +909,7 @@
## Scheduling ## Scheduling
* [First Come First Served](scheduling/first_come_first_served.py) * [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) * [Multi Level Feedback Queue](scheduling/multi_level_feedback_queue.py)
* [Non Preemptive Shortest Job First](scheduling/non_preemptive_shortest_job_first.py) * [Non Preemptive Shortest Job First](scheduling/non_preemptive_shortest_job_first.py)
* [Round Robin](scheduling/round_robin.py) * [Round Robin](scheduling/round_robin.py)
@ -995,6 +995,7 @@
* [Credit Card Validator](strings/credit_card_validator.py) * [Credit Card Validator](strings/credit_card_validator.py)
* [Detecting English Programmatically](strings/detecting_english_programmatically.py) * [Detecting English Programmatically](strings/detecting_english_programmatically.py)
* [Frequency Finder](strings/frequency_finder.py) * [Frequency Finder](strings/frequency_finder.py)
* [Hamming Distance](strings/hamming_distance.py)
* [Indian Phone Validator](strings/indian_phone_validator.py) * [Indian Phone Validator](strings/indian_phone_validator.py)
* [Is Contains Unique Chars](strings/is_contains_unique_chars.py) * [Is Contains Unique Chars](strings/is_contains_unique_chars.py)
* [Is Palindrome](strings/is_palindrome.py) * [Is Palindrome](strings/is_palindrome.py)
@ -1016,6 +1017,7 @@
* [Reverse Words](strings/reverse_words.py) * [Reverse Words](strings/reverse_words.py)
* [Split](strings/split.py) * [Split](strings/split.py)
* [Upper](strings/upper.py) * [Upper](strings/upper.py)
* [Wave](strings/wave.py)
* [Wildcard Pattern Matching](strings/wildcard_pattern_matching.py) * [Wildcard Pattern Matching](strings/wildcard_pattern_matching.py)
* [Word Occurrence](strings/word_occurrence.py) * [Word Occurrence](strings/word_occurrence.py)
* [Word Patterns](strings/word_patterns.py) * [Word Patterns](strings/word_patterns.py)