Skip to content

Commit

Permalink
Merge pull request #17 from ChrisLovering/bump-actions/checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanAbouelela authored Sep 6, 2023
2 parents f2deb38 + e4ac081 commit d202530
Show file tree
Hide file tree
Showing 6 changed files with 154 additions and 150 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test_setup_python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Python
uses: ./setup-python
Expand All @@ -43,7 +43,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Python
uses: ./setup-python
Expand All @@ -69,7 +69,7 @@ jobs:
python_version: ${{ steps.python.outputs.python-version }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Python
id: python
Expand All @@ -86,7 +86,7 @@ jobs:
needs: cache_hit_pre

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Python
id: python
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Python
uses: ./setup-python
Expand All @@ -143,12 +143,12 @@ jobs:
strategy:
matrix:
version:
- "poetry==1.1.*"
- "poetry==1.2.*"
- "poetry==1.4.*"
- "poetry==1.5.*"
- "git+https://github.com/python-poetry/poetry.git@master"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Python
uses: ./setup-python
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.1
> setup-python_v1.4.2

### 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.1 | [![tests][sp_badge]][sp_link] | Setup a [poetry][Poetry]-managed python environment. |
| [Setup Python](./setup-python) | 1.4.2 | [![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.1
uses: HassanAbouelela/actions/setup-python@setup-python_v1.4.2
with:
install_args: "--without dev"
python_version: '3.10'
Expand Down
6 changes: 3 additions & 3 deletions setup-python/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ runs:

steps:
# Checkout the code to get access to project files such as poetry and pre-commit configs
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: ${{ inputs.checkout }} == true

# Install python in our workflow
Expand All @@ -73,7 +73,7 @@ runs:
path: |
~/.cache/pypoetry
~/.cache/pip
key: "python-${{ runner.os }}-v1.4.1-\
key: "python-${{ runner.os }}-v1.4.2-\
${{ 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)) }}"

Expand All @@ -83,7 +83,7 @@ runs:
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: "precommit-${{ runner.os }}-v1.4.1-\
key: "precommit-${{ runner.os }}-v1.4.2-\
${{ steps.python_setup.outputs.python-version }}-${{ inputs.dev }}-${{ inputs.working_dir }}-${{ inputs.poetry_version }}-\
${{ hashFiles('./.pre-commit-config.yaml') }}"

Expand Down
Loading

0 comments on commit d202530

Please sign in to comment.