@@ -19,126 +19,126 @@ concurrency:
1919 cancel-in-progress : ${{ github.event_name == 'pull_request' }}
2020
2121jobs :
22- default :
23- name : ${{ matrix.os }} / ${{ matrix.python-version }} / install-poetry.py ${{ matrix.args }}
24- runs-on : ${{ matrix.image }}
25- strategy :
26- matrix :
27- os : [Ubuntu, macOS, Windows]
28- python-version :
29- - " 3.9"
30- - " 3.10"
31- - " 3.11"
32- - " 3.12"
33- - " 3.13"
34- args :
35- - " "
36- - " --preview"
37- - " --git https://github.com/python-poetry/poetry.git"
38- include :
39- - os : Ubuntu
40- image : ubuntu-22.04
41- - os : Windows
42- image : windows-2022
43- - os : macOS
44- image : macos-12
45- fail-fast : false
46- defaults :
47- run :
48- shell : bash
49- steps :
50- - uses : actions/checkout@v4
51-
52- - name : Set up Python ${{ matrix.python-version }}
53- uses : actions/setup-python@v5
54- with :
55- python-version : ${{ matrix.python-version }}
56-
57- - name : Update PATH
58- if : ${{ matrix.os != 'Windows' }}
59- run : echo "$HOME/.local/bin" >> $GITHUB_PATH
60-
61- - name : Update PATH for Windows
62- if : ${{ matrix.os == 'Windows' }}
63- run : echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH
64-
65- - name : Install Poetry
66- run : python install-poetry.py -y ${{ matrix.args }}
67-
68- - name : Upload Failure Log
69- uses : actions/upload-artifact@v4
70- if : failure()
71- with :
72- name : poetry-installer-error.log
73- path : poetry-installer-error-*.log
74-
75- - name : Verify Installation
76- run : |
77- set -e
78- poetry new foobar
79- cd foobar
80- poetry config virtualenvs.in-project true
81- poetry env use python
82- [ "$(poetry run python --version)" == "$(python --version)" ] \
83- || { echo >&2 "ERROR: Virtual environment Python version do not match system version." && exit 1; }
84-
85- - name : Uninstall Poetry
86- run : |
87- python install-poetry.py -y --uninstall
88- { type poetry 2>/dev/null >&2 && exit 1; } || exit 0
89-
90- # debian/ubuntu needs special testing due to various issues around python packaging
91- # and configuration
92- integration-ubuntu :
93- name : Integration Test / Ubuntu / ${{ matrix.tag }}
94- runs-on : ubuntu-latest
95- container : docker.io/ubuntu:${{ matrix.tag }}
96- strategy :
97- matrix :
98- tag :
99- - focal
100- - jammy
101- defaults :
102- run :
103- shell : bash
104- steps :
105- - uses : actions/checkout@v4
106-
107- - name : Install Packages
108- run : |
109- apt-get -y update
110- apt-get -y install python3 ca-certificates
111- apt-get -y install --reinstall python3-distutils
112-
113- - name : Update PATH
114- run : echo "$HOME/.local/bin" >> $GITHUB_PATH
115-
116- - name : Install Poetry
117- env :
118- DEB_PYTHON_INSTALL_LAYOUT : " deb"
119- run : python3 install-poetry.py -y
120-
121- - name : Upload Failure Log
122- uses : actions/upload-artifact@v4
123- if : failure()
124- with :
125- name : poetry-installer-error.log
126- path : poetry-installer-error-*.log
127-
128- - name : Verify Installation
129- run : |
130- set -e
131- poetry new foobar
132- cd foobar
133- poetry config virtualenvs.in-project true
134- poetry env use python3
135- [ "$(poetry run python --version)" == "$(python3 --version)" ] \
136- || { echo >&2 "ERROR: Virtual environment Python version do not match system version." && exit 1; }
137-
138- - name : Uninstall Poetry
139- run : |
140- python3 install-poetry.py -y --uninstall
141- { type poetry 2>/dev/null >&2 && exit 1; } || exit 0
22+ # default:
23+ # name: ${{ matrix.os }} / ${{ matrix.python-version }} / install-poetry.py ${{ matrix.args }}
24+ # runs-on: ${{ matrix.image }}
25+ # strategy:
26+ # matrix:
27+ # os: [Ubuntu, macOS, Windows]
28+ # python-version:
29+ # - "3.9"
30+ # - "3.10"
31+ # - "3.11"
32+ # - "3.12"
33+ # - "3.13"
34+ # args:
35+ # - ""
36+ # - "--preview"
37+ # - "--git https://github.com/python-poetry/poetry.git"
38+ # include:
39+ # - os: Ubuntu
40+ # image: ubuntu-22.04
41+ # - os: Windows
42+ # image: windows-2022
43+ # - os: macOS
44+ # image: macos-12
45+ # fail-fast: false
46+ # defaults:
47+ # run:
48+ # shell: bash
49+ # steps:
50+ # - uses: actions/checkout@v4
51+ #
52+ # - name: Set up Python ${{ matrix.python-version }}
53+ # uses: actions/setup-python@v5
54+ # with:
55+ # python-version: ${{ matrix.python-version }}
56+ #
57+ # - name: Update PATH
58+ # if: ${{ matrix.os != 'Windows' }}
59+ # run: echo "$HOME/.local/bin" >> $GITHUB_PATH
60+ #
61+ # - name: Update PATH for Windows
62+ # if: ${{ matrix.os == 'Windows' }}
63+ # run: echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH
64+ #
65+ # - name: Install Poetry
66+ # run: python install-poetry.py -y ${{ matrix.args }}
67+ #
68+ # - name: Upload Failure Log
69+ # uses: actions/upload-artifact@v4
70+ # if: failure()
71+ # with:
72+ # name: poetry-installer-error.log
73+ # path: poetry-installer-error-*.log
74+ #
75+ # - name: Verify Installation
76+ # run: |
77+ # set -e
78+ # poetry new foobar
79+ # cd foobar
80+ # poetry config virtualenvs.in-project true
81+ # poetry env use python
82+ # [ "$(poetry run python --version)" == "$(python --version)" ] \
83+ # || { echo >&2 "ERROR: Virtual environment Python version do not match system version." && exit 1; }
84+ #
85+ # - name: Uninstall Poetry
86+ # run: |
87+ # python install-poetry.py -y --uninstall
88+ # { type poetry 2>/dev/null >&2 && exit 1; } || exit 0
89+ #
90+ # # debian/ubuntu needs special testing due to various issues around python packaging
91+ # # and configuration
92+ # integration-ubuntu:
93+ # name: Integration Test / Ubuntu / ${{ matrix.tag }}
94+ # runs-on: ubuntu-latest
95+ # container: docker.io/ubuntu:${{ matrix.tag }}
96+ # strategy:
97+ # matrix:
98+ # tag:
99+ # - focal
100+ # - jammy
101+ # defaults:
102+ # run:
103+ # shell: bash
104+ # steps:
105+ # - uses: actions/checkout@v4
106+ #
107+ # - name: Install Packages
108+ # run: |
109+ # apt-get -y update
110+ # apt-get -y install python3 ca-certificates
111+ # apt-get -y install --reinstall python3-distutils
112+ #
113+ # - name: Update PATH
114+ # run: echo "$HOME/.local/bin" >> $GITHUB_PATH
115+ #
116+ # - name: Install Poetry
117+ # env:
118+ # DEB_PYTHON_INSTALL_LAYOUT: "deb"
119+ # run: python3 install-poetry.py -y
120+ #
121+ # - name: Upload Failure Log
122+ # uses: actions/upload-artifact@v4
123+ # if: failure()
124+ # with:
125+ # name: poetry-installer-error.log
126+ # path: poetry-installer-error-*.log
127+ #
128+ # - name: Verify Installation
129+ # run: |
130+ # set -e
131+ # poetry new foobar
132+ # cd foobar
133+ # poetry config virtualenvs.in-project true
134+ # poetry env use python3
135+ # [ "$(poetry run python --version)" == "$(python3 --version)" ] \
136+ # || { echo >&2 "ERROR: Virtual environment Python version do not match system version." && exit 1; }
137+ #
138+ # - name: Uninstall Poetry
139+ # run: |
140+ # python3 install-poetry.py -y --uninstall
141+ # { type poetry 2>/dev/null >&2 && exit 1; } || exit 0
142142
143143 integration-macos-homebrew :
144144 name : Integration Test / MacOS / Homebrew Python
@@ -157,7 +157,9 @@ jobs:
157157 run : brew install python
158158
159159 - name : Install Poetry
160- run : curl -sSL https://install.python-poetry.org | python3 -
160+ run : |
161+ eval "$(/opt/homebrew/bin/brew shellenv)"
162+ curl -sSL https://install.python-poetry.org | python -
161163
162164 - name : Test Poetry
163165 run : |
0 commit comments