Skip to content

Commit f65382c

Browse files
committed
try fix python env in CI
1 parent 4355058 commit f65382c

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
- python-version: '3.10'
3939
django-version: '5.1'
4040

41+
env:
42+
TEST_PYTHON_VERSION: ${{ matrix.python-version }}
43+
TEST_DJANGO_VERSION: ${{ matrix.django-version }}
4144
steps:
4245
- uses: actions/checkout@v4
4346
- name: Set up Python ${{ matrix.python-version }}
@@ -48,7 +51,7 @@ jobs:
4851
uses: extractions/setup-just@v2
4952
- name: Install Dependencies
5053
run: |
51-
just init ${{ steps.setup-python.outputs.python-path }}python
54+
just init ${{ steps.setup_python.outputs.python-location }}/bin/python
5255
just install django~=${{ matrix.django-version }}
5356
- name: Install Emacs
5457
if: ${{ github.event.inputs.debug == 'true' }}

.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 ${{ steps.setup-python.outputs.python-path }}python
71+
just init ${{ steps.setup_python.outputs.python-location }}/bin/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 ${{ steps.setup-python.outputs.python-path }}python
124+
just init ${{ steps.setup_python.outputs.python-location }}/bin/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 ${{ steps.setup-python.outputs.python-path }}python
177+
just init ${{ steps.setup_python.outputs.python-location }}/bin/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 ${{ steps.setup-python.outputs.python-path }}python
247+
just init ${{ steps.setup_python.outputs.python-location }}/bin/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 ${{ steps.setup-python.outputs.python-path }}python
297+
just init ${{ steps.setup_python.outputs.python-location }}/bin/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 ${{ steps.setup-python.outputs.python-path }}python
348+
just init ${{ steps.setup_python.outputs.python-location }}/bin/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 ${{ steps.setup-python.outputs.python-path }}python
415+
just init ${{ steps.setup_python.outputs.python-location }}/bin/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 ${{ steps.setup-python.outputs.python-path }}python
469+
just init ${{ steps.setup_python.outputs.python-location }}/bin/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 ${{ steps.setup-python.outputs.python-path }}python
529+
just init ${{ steps.setup_python.outputs.python-location }}/bin/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 ${{ steps.setup-python.outputs.python-path }}python
584+
just init ${{ steps.setup_python.outputs.python-location }}/bin/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 ${{ steps.setup-python.outputs.python-path }}python
636+
just init ${{ steps.setup_python.outputs.python-location }}/bin/python
637637
just install
638638
639639
- name: Get coverage files

0 commit comments

Comments
 (0)