Skip to content

Commit eceb018

Browse files
chore: Use Renovate to update CI dependencies (#135)
1 parent 6be8edb commit eceb018

4 files changed

Lines changed: 38 additions & 34 deletions

File tree

.github/workflows/constraints.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,34 @@ permissions:
99

1010
jobs:
1111
build:
12-
runs-on: ubuntu-latest
12+
name: Build and Inspect
13+
runs-on: ubuntu-24.04
1314
outputs:
1415
package_version: ${{ steps.baipp.outputs.package_version }}
1516
steps:
16-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1718
with:
1819
fetch-depth: 0
19-
- uses: hynek/build-and-inspect-python-package@v2
20+
- uses: hynek/build-and-inspect-python-package@b5076c307dc91924a82ad150cdd1533b444d3310 # v2.12.0
2021
id: baipp
2122

2223
publish:
23-
runs-on: ubuntu-latest
24+
name: Publish to PyPI
25+
runs-on: ubuntu-24.04
2426
needs: build
2527
environment:
2628
name: publishing
2729
url: https://pypi.org/project/tap-betterstack/${{ needs.build.outputs.package_version }}
2830
if: startsWith(github.ref, 'refs/tags/')
2931
steps:
30-
- uses: actions/download-artifact@v4
32+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
3133
with:
3234
name: Packages
3335
path: dist
34-
- uses: svenstaro/upload-release-action@v2
36+
- uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # 2.9.0
3537
with:
3638
file: dist/*
3739
tag: ${{ github.ref }}
3840
overwrite: true
3941
file_glob: true
40-
- uses: pypa/gh-action-pypi-publish@release/v1
42+
- uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4

.github/workflows/test.yml

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
- poetry.lock
1111
- pyproject.toml
1212
- .github/workflows/test.yml
13-
- .github/workflows/constraints.txt
1413
pull_request:
1514
types: [opened, synchronize, reopened]
1615
paths:
@@ -20,7 +19,6 @@ on:
2019
- poetry.lock
2120
- pyproject.toml
2221
- .github/workflows/test.yml
23-
- .github/workflows/constraints.txt
2422
workflow_dispatch:
2523
schedule:
2624
# Run weekly on Monday at 12:00 PM UTC
@@ -30,13 +28,25 @@ concurrency:
3028
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
3129
cancel-in-progress: true
3230

31+
env:
32+
FORCE_COLOR: "1"
33+
# renovate: datasource=pypi depName=nox
34+
NOX_VERSION: 2024.10.9
35+
# renovate: datasource=pypi depName=nox-poetry
36+
NOX_POETRY_VERSION: 1.1.0
37+
# renovate: datasource=pypi depName=pip
38+
PIP_VERSION: 25.0.1
39+
# renovate: datasource=pypi depName=poetry
40+
POETRY_VERSION: 2.0.1
41+
# renovate: datasource=pypi depName=poetry-plugin-export
42+
POETRY_PLUGIN_EXPORT_VERSION: 1.9.0
43+
3344
jobs:
3445
test:
35-
runs-on: ubuntu-latest
46+
runs-on: ubuntu-24.04
3647
env:
3748
NOXFORCEPYTHON: ${{ matrix.python-version }}
3849
NOXSESSION: tests
39-
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
4050
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
4151
strategy:
4252
fail-fast: false
@@ -50,8 +60,8 @@ jobs:
5060
- "3.13"
5161

5262
steps:
53-
- uses: actions/checkout@v4
54-
- uses: actions/setup-python@v5
63+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
64+
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
5565
with:
5666
python-version: ${{ matrix.python-version }}
5767
allow-prereleases: true
@@ -60,20 +70,20 @@ jobs:
6070

6171
- name: Upgrade pip
6272
run: |
63-
pip install pip
73+
pip install pip==${{ env.PIP_VERSION }}
6474
pip --version
6575
6676
- name: Install Poetry
6777
run: |
68-
pipx install poetry
69-
pipx inject poetry poetry-plugin-export
78+
pipx install poetry==${{ env.POETRY_VERSION }}
79+
pipx inject poetry poetry-plugin-export==${{ env.POETRY_PLUGIN_EXPORT_VERSION }}
7080
poetry --version
7181
poetry self show plugins
7282
7383
- name: Install Nox
7484
run: |
75-
pipx install nox
76-
pipx inject nox nox-poetry
85+
pipx install nox==${{ env.NOX_VERSION }}
86+
pipx inject nox nox-poetry==${{ env.NOX_POETRY_VERSION }}
7787
nox --version
7888
7989
- name: Run tests
@@ -84,16 +94,15 @@ jobs:
8494
nox --verbose
8595
8696
typing:
87-
runs-on: ubuntu-latest
97+
runs-on: ubuntu-24.04
8898
env:
8999
NOXSESSION: mypy
90-
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
91100
steps:
92101
- name: Checkout code
93-
uses: actions/checkout@v4
102+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
94103

95104
- name: Set up Python
96-
uses: actions/setup-python@v5
105+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
97106
id: setup-python
98107
with:
99108
python-version: "3.x"
@@ -102,20 +111,20 @@ jobs:
102111

103112
- name: Upgrade pip
104113
run: |
105-
pip install pip
114+
pip install pip==${{ env.PIP_VERSION }}
106115
pip --version
107116
108117
- name: Install Poetry
109118
run: |
110-
pipx install poetry --python ${{ steps.setup-python.outputs.python-path }}
111-
pipx inject poetry poetry-plugin-export
119+
pipx install poetry==${{ env.POETRY_VERSION }} --python ${{ steps.setup-python.outputs.python-path }}
120+
pipx inject poetry poetry-plugin-export==${{ env.POETRY_PLUGIN_EXPORT_VERSION }}
112121
poetry --version
113122
poetry self show plugins
114123
115124
- name: Install Nox
116125
run: |
117-
pipx install nox --python ${{ steps.setup-python.outputs.python-path }}
118-
pipx inject nox nox-poetry
126+
pipx install nox==${{ env.NOX_VERSION }} --python ${{ steps.setup-python.outputs.python-path }}
127+
pipx inject nox nox-poetry==${{ env.NOX_POETRY_VERSION }}
119128
nox --version
120129
121130
- name: Run typing checks

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ lint.select = [
7272
"ALL",
7373
]
7474
lint.ignore = [
75-
"ANN101", # missing-type-self
7675
"COM812", # missing-trailing-comma
7776
"DJ", # flake8-django
7877
"FIX002", # line-contains-todo

0 commit comments

Comments
 (0)