Skip to content

Commit 74c825e

Browse files
committed
run dependabot on actions, remove GHA dependency on snok and use pipx to install poetry instead
1 parent ac82ddc commit 74c825e

File tree

3 files changed

+35
-15
lines changed

3 files changed

+35
-15
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
# To get started with Dependabot version updates, you'll need to specify which
22
# package ecosystems to update and where the package manifests are located.
33
# Please see the documentation for all configuration options:
4-
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
55

66
version: 2
77
updates:
8-
- package-ecosystem: "pip" # See documentation for possible values
9-
directory: "/" # Location of package manifests
8+
# GitHub Actions
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
1011
schedule:
1112
interval: "daily"
13+
commit-message:
14+
prefix:
15+
# Python
16+
- package-ecosystem: "pip"
17+
directory: "/"
18+
schedule:
19+
interval: "daily"
20+
commit-message:
21+
prefix:

.github/workflows/lint.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ jobs:
4848
with:
4949
python-version: ${{ matrix.python-version }}
5050
- name: Install Poetry
51-
uses: snok/install-poetry@v1
52-
with:
53-
virtualenvs-create: true
54-
virtualenvs-in-project: true
51+
run: |
52+
pip install pipx
53+
pipx ensurepath
54+
pipx install poetry
55+
poetry config --local virtualenvs.create true
56+
poetry config --local virtualenvs.in-project true
57+
poetry env use python
5558
- name: Install Dependencies
5659
run: |
5760
poetry config virtualenvs.in-project true

.github/workflows/test.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@ jobs:
5252
python-version: ${{ matrix.python-version }}
5353

5454
- name: Install Poetry
55-
uses: snok/install-poetry@v1
56-
with:
57-
virtualenvs-create: true
58-
virtualenvs-in-project: true
55+
run: |
56+
pip install pipx
57+
pipx ensurepath
58+
pipx install poetry
59+
poetry config --local virtualenvs.create true
60+
poetry config --local virtualenvs.in-project true
61+
poetry env use python
5962
- name: Install Release Dependencies
6063
run: |
6164
poetry config virtualenvs.in-project true
@@ -111,11 +114,15 @@ jobs:
111114
with:
112115
python-version: '3.12'
113116

117+
114118
- name: Install Poetry
115-
uses: snok/install-poetry@v1
116-
with:
117-
virtualenvs-create: true
118-
virtualenvs-in-project: true
119+
run: |
120+
pip install pipx
121+
pipx ensurepath
122+
pipx install poetry
123+
poetry config --local virtualenvs.create true
124+
poetry config --local virtualenvs.in-project true
125+
poetry env use python
119126
120127
- name: Install Release Dependencies
121128
run: |

0 commit comments

Comments
 (0)