Skip to content

Commit 885ed2d

Browse files
authored
chore: update c7n to 0.9.43 (ENG-4616) (#55)
* Update c7n-left version and update .tool-versions * Bump version number to match minor version of c7n-left. * Update github actions. * Use updated upload and download artifact. * set up poetry first * Remove 3.13 for now.
1 parent 547868c commit 885ed2d

File tree

5 files changed

+433
-402
lines changed

5 files changed

+433
-402
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ jobs:
1212
Lint:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-python@v2.2.1
15+
- uses: actions/checkout@v4
16+
- uses: wistia/parse-tool-versions@v1.0
17+
- uses: actions/setup-python@v5
1718
with:
18-
python-version: "3.11"
19+
python-version: ${{ env.PYTHON_TOOL_VERSION }}
1920
- name: Linting
2021
run: |
2122
pip install pre-commit
@@ -26,37 +27,22 @@ jobs:
2627
runs-on: ubuntu-latest
2728
strategy:
2829
matrix:
29-
python-version: ["3.10", "3.11"]
30+
python-version: ["3.10", "3.11", "3.12"]
3031
steps:
31-
- uses: actions/checkout@v2
32-
- name: Set up Python ${{ matrix.python-version }}
33-
uses: actions/setup-python@v2.2.1
34-
with:
35-
python-version: ${{ matrix.python-version }}
36-
37-
- name: Install poetry
38-
shell: bash
39-
run: |
40-
curl -sSL https://install.python-poetry.org | python3 - --version 1.3.2
41-
echo "$HOME/.local/bin" >> $GITHUB_PATH
32+
- uses: actions/checkout@v4
33+
- uses: wistia/parse-tool-versions@v1.0
4234

43-
- name: Configure poetry
44-
shell: bash
45-
run: poetry config virtualenvs.in-project true
46-
47-
- name: Set up cache
48-
uses: actions/cache@v2.1.4
49-
id: cache
35+
- name: Install and configure Poetry
36+
uses: snok/install-poetry@v1
5037
with:
51-
path: |
52-
.venv
53-
~/.cache
54-
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
38+
version: ${{ env.POETRY_TOOL_VERSION }}
39+
virtualenvs-in-project: true
5540

56-
- name: Ensure cache is healthy
57-
if: steps.cache.outputs.cache-hit == 'true'
58-
shell: bash
59-
run: poetry run pip --version >/dev/null 2>&1 || rm -rf .venv
41+
- name: Set up Python ${{ matrix.python-version }}
42+
uses: actions/setup-python@v4
43+
with:
44+
python-version: ${{ matrix.python-version }}
45+
cache: poetry
6046

6147
- name: Install dependencies
6248
shell: bash

.github/workflows/release.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,24 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
11+
- uses: wistia/parse-tool-versions@v1.0
12+
1113
- name: Set up Python
1214
uses: actions/setup-python@v4
1315
with:
1416
python-version: "3.10"
17+
1518
- name: Install and configure Poetry
1619
uses: snok/install-poetry@v1
1720
with:
18-
version: 1.5.1
21+
version: ${{ env.POETRY_TOOL_VERSION }}
22+
virtualenvs-in-project: true
23+
1924
- name: Build a binary wheel and a source tarball
2025
run: poetry build
26+
2127
- name: Store the distribution packages
22-
uses: actions/upload-artifact@v3
28+
uses: actions/upload-artifact@v4
2329
with:
2430
name: python-package-distributions
2531
path: dist/
@@ -38,7 +44,7 @@ jobs:
3844
id-token: write # IMPORTANT: mandatory for trusted publishing
3945
steps:
4046
- name: Download all the dists
41-
uses: actions/download-artifact@v3
47+
uses: actions/download-artifact@v4
4248
with:
4349
name: python-package-distributions
4450
path: dist/
@@ -61,7 +67,7 @@ jobs:
6167
id-token: write # IMPORTANT: mandatory for sigstore
6268
steps:
6369
- name: Download all the dists
64-
uses: actions/download-artifact@v3
70+
uses: actions/download-artifact@v4
6571
with:
6672
name: python-package-distributions
6773
path: dist/

.tool-versions

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
poetry 1.3.2
2-
python 3.11.3
3-
just 1.4.0
1+
just 1.36.0
2+
poetry 1.8.3
3+
python 3.11.10

0 commit comments

Comments
 (0)