Skip to content

Commit

Permalink
Use precise version of python for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
matti-lamppu committed Feb 13, 2024
1 parent 82d1f01 commit b390acc
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 21 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ jobs:
uses: actions/checkout@v4

- name: "Set up python"
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- uses: MrThearMan/CI/.github/actions/poetry@v0.4.8
- uses: MrThearMan/CI/.github/actions/poetry@v0.4.9
with:
os: ${{ inputs.os }}
poetry-version: ${{ inputs.poetry-version }}
python-version: ${{ steps.setup-python.outputs.python-version }}

- name: "Load cached poetry environment"
uses: actions/cache@v4
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ jobs:
uses: actions/checkout@v4

- name: "Set up python"
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- uses: MrThearMan/CI/.github/actions/poetry@v0.4.8
- uses: MrThearMan/CI/.github/actions/poetry@v0.4.9
with:
os: ${{ inputs.os }}
poetry-version: ${{ inputs.poetry-version }}
python-version: ${{ steps.setup-python.outputs.python-version }}

- name: "Load cached poetry environment"
uses: actions/cache@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- uses: MrThearMan/CI/.github/actions/poetry@v0.4.8
- uses: MrThearMan/CI/.github/actions/poetry@v0.4.9
with:
os: ${{ matrix.os }}
poetry-version: ${{ inputs.poetry-version }}
python-version: ${{ matrix.python-version }}
python-version: ${{ steps.setup-python.outputs.python-version }}

- name: "Load cached poetry environment"
uses: actions/cache@v4
Expand Down
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ on:

jobs:
test:
uses: MrThearMan/CI/.github/workflows/test.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/test.yml@v0.4.9
```
This job can take a number of inputs via the [with]-keyword.
Expand All @@ -116,7 +116,7 @@ Default configuration:
```yaml
jobs:
test:
uses: MrThearMan/CI/.github/workflows/test.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/test.yml@v0.4.9
with:
python-version: '["3.9", "3.10", "3.11"]'
```
Expand All @@ -132,7 +132,7 @@ Default configuration:
```yaml
jobs:
test:
uses: MrThearMan/CI/.github/workflows/test.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/test.yml@v0.4.9
with:
os: '["ubuntu-latest", "macos-latest", "windows-latest"]'
```
Expand All @@ -148,7 +148,7 @@ Default configuration:
```yaml
jobs:
test:
uses: MrThearMan/CI/.github/workflows/test.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/test.yml@v0.4.9
with:
poetry-version: "1.7.1"
```
Expand All @@ -166,7 +166,7 @@ Default configuration:
```yaml
jobs:
test:
uses: MrThearMan/CI/.github/workflows/test.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/test.yml@v0.4.9
with:
exclude: '[{"os": "none", "python-version": "none"}]' # this ignores nothing
```
Expand Down Expand Up @@ -205,7 +205,7 @@ on:
jobs:
test:
uses: MrThearMan/CI/.github/workflows/docs.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/docs.yml@v0.4.9
```

This job can take a number of inputs via the [with]-keyword.
Expand All @@ -221,7 +221,7 @@ Default configuration:
```yaml
jobs:
test:
uses: MrThearMan/CI/.github/workflows/docs.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/docs.yml@v0.4.9
with:
poetry-version: "1.7.1"
```
Expand All @@ -237,7 +237,7 @@ Default configuration:
```yaml
jobs:
test:
uses: MrThearMan/CI/.github/workflows/docs.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/docs.yml@v0.4.9
with:
python-version: "3.11"
```
Expand All @@ -253,7 +253,7 @@ Default configuration:
```yaml
jobs:
test:
uses: MrThearMan/CI/.github/workflows/docs.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/docs.yml@v0.4.9
with:
os: "ubuntu-latest"
```
Expand Down Expand Up @@ -282,7 +282,7 @@ on:
jobs:
test:
uses: MrThearMan/CI/.github/workflows/release.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/release.yml@v0.4.9
secrets:
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
```
Expand All @@ -302,7 +302,7 @@ Default configuration:
```yaml
jobs:
test:
uses: MrThearMan/CI/.github/workflows/release.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/release.yml@v0.4.9
with:
poetry-version: "1.7.1"
```
Expand All @@ -318,7 +318,7 @@ Default configuration:
```yaml
jobs:
test:
uses: MrThearMan/CI/.github/workflows/release.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/release.yml@v0.4.9
with:
python-version: "3.11"
```
Expand All @@ -334,7 +334,7 @@ Default configuration:
```yaml
jobs:
test:
uses: MrThearMan/CI/.github/workflows/release.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/release.yml@v0.4.9
with:
os: "ubuntu-latest"
```
Expand All @@ -361,7 +361,7 @@ jobs:
permissions:
pull-requests: write
contents: write
uses: MrThearMan/CI/.github/workflows/approve.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/approve.yml@v0.4.9
```

This job can take a number of inputs via the [with]-keyword.
Expand All @@ -377,7 +377,7 @@ Default configuration:
```yaml
jobs:
approve:
uses: MrThearMan/CI/.github/workflows/approve.yml@v0.4.8
uses: MrThearMan/CI/.github/workflows/approve.yml@v0.4.9
with:
users: '["dependabot[bot]", "pre-commit-ci[bot]"]'
```
Expand Down Expand Up @@ -434,7 +434,7 @@ jobs:
<foo>:
steps:
- ...
- uses: MrThearMan/CI/.github/actions/poetry@v0.4.8
- uses: MrThearMan/CI/.github/actions/poetry@v0.4.9
with:
os: "ubuntu-latest"
poetry-version: "1.7.1"
Expand Down Expand Up @@ -465,7 +465,7 @@ Can be used to check if certain filetypes were changed in a pull request.
jobs:
<foo>:
steps:
- uses: MrThearMan/CI/.github/actions/get-changed-filetypes@v0.4.8
- uses: MrThearMan/CI/.github/actions/get-changed-filetypes@v0.4.9
id: changed
with:
filetypes: "py|yaml"
Expand Down

0 comments on commit b390acc

Please sign in to comment.