Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade poetry and installer for Github CI #1038

Merged
merged 8 commits into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 20 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
# limit to 3.11 for not for
# https://github.com/zheller/flake8-quotes/issues/117
python-version: '3.11'
- name: Install Poetry
uses: snok/install-poetry@v1.3.3
uses: snok/install-poetry@v1.3.4
with:
version: "1.3.1"
version: "1.7.0"
virtualenvs-create: true

#- name: Cache python dependencies
Expand Down Expand Up @@ -96,9 +98,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1.3.3
uses: snok/install-poetry@v1.3.4
with:
version: "1.3.1"
version: "1.7.0"
virtualenvs-create: true

#- name: Cache python dependencies
Expand Down Expand Up @@ -139,19 +141,28 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
# Pinned to 3.11 because of poetry issues with missing setuptools
# https://github.com/python-poetry/poetry/issues/7611#issuecomment-1793850783
python-version: '3.11'
- name: Install Poetry
uses: snok/install-poetry@v1.3.3
uses: snok/install-poetry@v1.3.4
with:
version: "1.3.1"
version: "1.7.0"
virtualenvs-create: true
- name: Configure Poetry
run: |
poetry config virtualenvs.in-project true
- name: Install Dependencies
env:
SETUPTOOLS_USE_DISTUTILS: stdlib
run: poetry install
run: |
# work around
# https://github.com/python-poetry/poetry/issues/7611#issuecomment-1747836233
# can be removed when
# https://github.com/python-poetry/poetry/pull/8517
# is merged and released
poetry config installer.max-workers 1
poetry install
- name: Run test suite
env:
RELATE_LOCAL_TEST_SETTINGS: "local_settings_example.py"
Expand Down
Loading
Loading