Skip to content

Commit

Permalink
Merge pull request #20 from ChrisLovering/bump-external-action-versions
Browse files Browse the repository at this point in the history
Bump external action versions
  • Loading branch information
HassanAbouelela authored Apr 27, 2024
2 parents 84f4e19 + 68c785d commit 903cfcd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test_setup_python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ jobs:
strategy:
matrix:
version:
- "poetry==1.4.*"
- "poetry==1.5.*"
- "poetry==1.6.*"
- "poetry==1.7.*"
- "poetry==1.8.*"
- "git+https://github.com/python-poetry/poetry.git@master"

steps:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ linked in the index below.
> {name}_v{version}
Example:
> setup-python_v1.4.2
> setup-python_v1.5.0

### Support Policy
Expand All @@ -33,7 +33,7 @@ An index of all the currently maintained scripts, their description, and the lat

| Name | Version | Status | Description |
|--------------------------------|---------|-------------------------------|------------------------------------------------------|
| [Setup Python](./setup-python) | 1.4.2 | [![tests][sp_badge]][sp_link] | Setup a [poetry][Poetry]-managed python environment. |
| [Setup Python](./setup-python) | 1.5.0 | [![tests][sp_badge]][sp_link] | Setup a [poetry][Poetry]-managed python environment. |


[License]: https://shields.io/github/license/HassanAbouelela/actions
Expand Down
2 changes: 1 addition & 1 deletion setup-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ It also handles caching of pre-commit if you happen to be using that.
You can use this action as follows:
```yaml
- name: Install Python Dependencies
uses: HassanAbouelela/actions/setup-python@setup-python_v1.4.2
uses: HassanAbouelela/actions/setup-python@setup-python_v1.5.0
with:
install_args: "--without dev"
python_version: '3.10'
Expand Down
10 changes: 5 additions & 5 deletions setup-python/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,30 +60,30 @@ runs:

# Install python in our workflow
- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
id: python_setup
with:
python-version: ${{ inputs.python_version }}

# Specify directories that require caching
- name: Python Dependency Caching
uses: actions/cache@v3
uses: actions/cache@v4
id: python_cache
with:
path: |
~/.cache/pypoetry
~/.cache/pip
key: "python-${{ runner.os }}-v1.4.2-\
key: "python-${{ runner.os }}-v1.5.0-\
${{ steps.python_setup.outputs.python-version }}-${{ inputs.dev }}-${{ inputs.working_dir }}-${{ inputs.poetry_version }}-${{ inputs.install_args }}-\
${{ hashFiles(format('{0}/pyproject.toml', inputs.working_dir), format('{0}/poetry.lock', inputs.working_dir)) }}"

# Cache pre-commit independently of other cache
- name: Pre-commit Environment Caching
if: ${{ inputs.cache_pre-commit }} == true
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: "precommit-${{ runner.os }}-v1.4.2-\
key: "precommit-${{ runner.os }}-v1.5.0-\
${{ steps.python_setup.outputs.python-version }}-${{ inputs.dev }}-${{ inputs.working_dir }}-${{ inputs.poetry_version }}-\
${{ hashFiles('./.pre-commit-config.yaml') }}"

Expand Down
2 changes: 1 addition & 1 deletion setup-python/tests/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "project"
version = "1.4.2"
version = "1.5.0"
description = "Simple project to test the setup-python action."
authors = ["Hassan Abouelela <hassan@hassanamr.com>"]
license = "MIT"
Expand Down

0 comments on commit 903cfcd

Please sign in to comment.