From b390acc7882ed156752855da03544ba1e7d9aaf3 Mon Sep 17 00:00:00 2001 From: Matti Lamppu Date: Tue, 13 Feb 2024 23:59:02 +0200 Subject: [PATCH] Use precise version of python for caching --- .github/workflows/docs.yml | 4 +++- .github/workflows/release.yml | 4 +++- .github/workflows/test.yml | 4 ++-- README.md | 34 +++++++++++++++++----------------- 4 files changed, 25 insertions(+), 21 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 280b225..a135672 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2d03ea..91960cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 79060b8..0e21e33 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/README.md b/README.md index 40ca84d..2c21eac 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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"]' ``` @@ -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"]' ``` @@ -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" ``` @@ -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 ``` @@ -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. @@ -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" ``` @@ -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" ``` @@ -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" ``` @@ -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 }} ``` @@ -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" ``` @@ -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" ``` @@ -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" ``` @@ -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. @@ -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]"]' ``` @@ -434,7 +434,7 @@ jobs: : 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" @@ -465,7 +465,7 @@ Can be used to check if certain filetypes were changed in a pull request. jobs: : 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"