Skip to content

Commit

Permalink
Tweak CI
Browse files Browse the repository at this point in the history
  • Loading branch information
privet-kitty committed Oct 22, 2023
1 parent 4dc3935 commit 614690f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
defaults:
run:
shell: bash
working-directory:
steps:
- name: Set locale to ja-JP
run: Set-WinSystemLocale ja-JP
Expand Down Expand Up @@ -68,9 +67,11 @@ jobs:
# Enable handling long path names (+260 char) on the Windows platform
# https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#maximum-path-length-limitation
run: git config --system core.longpaths true
working-directory:

- name: Configure poetry
run: poetry config virtualenvs.in-project true
working-directory:

- name: Set up cache
uses: actions/cache@v3
Expand All @@ -87,18 +88,23 @@ jobs:
# Using `timeout` is a safeguard against the Poetry command hanging for some reason.
timeout 10s poetry run pip --version || rm -rf .venv
working-directory:

- name: Check lock file
run: poetry check --lock
working-directory:

- name: Install dependencies
run: poetry install --with github-actions
working-directory:

- name: Run mypy
run: poetry run mypy
working-directory:

- name: Run pytest
env:
POETRY_TEST_INTEGRATION_GIT_USERNAME: ${GITHUB_ACTOR}
POETRY_TEST_INTEGRATION_GIT_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: poetry run pytest --integration -v
working-directory:

0 comments on commit 614690f

Please sign in to comment.