Skip to content

Commit

Permalink
try fix macos actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Jan 31, 2024
1 parent 52820c9 commit f597b90
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install Homebrew and Zshell Completion
shell: zsh
shell: zsh {0}
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
touch ~/.zshrc
Expand All @@ -138,14 +133,20 @@ jobs:
rm -f ~/.zcompdump
compinit
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Install Release Dependencies
run: |
poetry config virtualenvs.in-project true
poetry run pip install --upgrade pip
poetry install
poetry run pip install -U "Django~=${{ matrix.django-version }}"
- name: Run Unit Tests
shell: zsh
shell: zsh {0}
run: |
poetry run pytest django_typer/tests/completion_tests.py
mv .coverage macos-complete-py${{ matrix.python-version }}-dj${{ matrix.django-version }}.coverage
Expand Down

0 comments on commit f597b90

Please sign in to comment.