Skip to content

Commit 4355058

Browse files
committed
add python exe argument to just init
1 parent 6e1fbf9 commit 4355058

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
uses: extractions/setup-just@v2
4949
- name: Install Dependencies
5050
run: |
51-
just init
51+
just init ${{ steps.setup-python.outputs.python-path }}python
5252
just install django~=${{ matrix.django-version }}
5353
- name: Install Emacs
5454
if: ${{ github.event.inputs.debug == 'true' }}
@@ -62,6 +62,7 @@ jobs:
6262
timeout-minutes: 60
6363
- name: Run Static Analysis
6464
run: |
65+
just test ./tests/verify_environment.py
6566
just check-lint
6667
just check-format
6768
just check-types

.github/workflows/test.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
uses: extractions/setup-just@v2
6969
- name: Install
7070
run: |
71-
just init
71+
just init ${{ steps.setup-python.outputs.python-path }}python
7272
just install
7373
just pin-dependency Django~=${{ matrix.django-version }}
7474
sudo apt remove powershell
@@ -121,7 +121,7 @@ jobs:
121121
uses: extractions/setup-just@v2
122122
- name: Install
123123
run: |
124-
just init
124+
just init ${{ steps.setup-python.outputs.python-path }}python
125125
just install
126126
just pin-dependency Django~=${{ matrix.django-version }}
127127
- name: Run Unit Tests
@@ -174,7 +174,7 @@ jobs:
174174
brew install just
175175
- name: Install
176176
run: |
177-
just init
177+
just init ${{ steps.setup-python.outputs.python-path }}python
178178
just install
179179
just pin-dependency Django~=${{ matrix.django-version }}
180180
- name: Run Unit Tests
@@ -244,7 +244,7 @@ jobs:
244244
uses: extractions/setup-just@v2
245245
- name: Install
246246
run: |
247-
just init
247+
just init ${{ steps.setup-python.outputs.python-path }}python
248248
just install --with psycopg3
249249
just pin-dependency Django~=${{ matrix.django-version }}
250250
- name: Run Unit Tests
@@ -294,7 +294,7 @@ jobs:
294294
uses: extractions/setup-just@v2
295295
- name: Install
296296
run: |
297-
just init
297+
just init ${{ steps.setup-python.outputs.python-path }}python
298298
just install
299299
just pin-dependency Django~=${{ matrix.django-version }}
300300
- name: Test Tab Completion
@@ -345,7 +345,7 @@ jobs:
345345
uses: extractions/setup-just@v2
346346
- name: Install
347347
run: |
348-
just init
348+
just init ${{ steps.setup-python.outputs.python-path }}python
349349
just install
350350
just pin-dependency Django~=${{ matrix.django-version }}
351351
- name: Install Fish shell
@@ -412,7 +412,7 @@ jobs:
412412
run: echo "SHELL=$(which zsh)" >> $GITHUB_ENV
413413
- name: Install
414414
run: |
415-
just init
415+
just init ${{ steps.setup-python.outputs.python-path }}python
416416
just install
417417
just pin-dependency Django~=${{ matrix.django-version }}
418418
- name: Run Unit Tests
@@ -466,7 +466,7 @@ jobs:
466466
brew install just
467467
- name: Install
468468
run: |
469-
just init
469+
just init ${{ steps.setup-python.outputs.python-path }}python
470470
just install
471471
just pin-dependency Django~=${{ matrix.django-version }}
472472
- name: Run Unit Tests
@@ -526,7 +526,7 @@ jobs:
526526
run: echo "SHELL=$(which fish)" >> $GITHUB_ENV
527527
- name: Install
528528
run: |
529-
just init
529+
just init ${{ steps.setup-python.outputs.python-path }}python
530530
just install
531531
just pin-dependency Django~=${{ matrix.django-version }}
532532
- name: Run Tab Completion Tests
@@ -581,7 +581,7 @@ jobs:
581581
uses: extractions/setup-just@v2
582582
- name: Install Release Dependencies
583583
run: |
584-
just init
584+
just init ${{ steps.setup-python.outputs.python-path }}python
585585
just install
586586
just pin-dependency Django~=${{ matrix.django-version }}
587587
shell: powershell
@@ -633,7 +633,7 @@ jobs:
633633
uses: extractions/setup-just@v2
634634
- name: Install Release Dependencies
635635
run: |
636-
just init
636+
just init ${{ steps.setup-python.outputs.python-path }}python
637637
just install
638638
639639
- name: Get coverage files

justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ set unstable := true
44
default:
55
@just --list
66

7-
init:
7+
init python="python":
88
pip install pipx
99
pipx ensurepath
1010
pipx install poetry
11-
poetry env use python
11+
poetry env use {{ python }}
1212
poetry run pip install --upgrade pip setuptools wheel
1313

1414
install-precommit:

0 commit comments

Comments
 (0)