Skip to content

Commit 5ad0932

Browse files
abnneersighted
authored andcommitted
ci: add debian integration tests
1 parent d2a07fc commit 5ad0932

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.github/workflows/installer.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,56 @@ jobs:
8181
run: |
8282
python install-poetry.py -y --uninstall
8383
{ type poetry 2>/dev/null >&2 && exit 1; } || exit 0
84+
85+
# debian/ubuntu needs special testing due to various issues around python packaging
86+
# and configuration
87+
integration-ubuntu:
88+
name: Integration Test / Ubuntu / ${{ matrix.tag }}
89+
runs-on: ubuntu-latest
90+
container: docker.io/ubuntu:${{ matrix.tag }}
91+
strategy:
92+
matrix:
93+
tag:
94+
- impish
95+
- jammy
96+
defaults:
97+
run:
98+
shell: bash
99+
steps:
100+
- uses: actions/checkout@v3
101+
102+
- name: Install Packages
103+
run: |
104+
apt-get -y update
105+
apt-get -y install python3 ca-certificates
106+
apt-get -y install --reinstall python3-distutils
107+
108+
- name: Update PATH
109+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
110+
111+
- name: Install Poetry
112+
env:
113+
DEB_PYTHON_INSTALL_LAYOUT: "deb"
114+
run: python3 install-poetry.py -y
115+
116+
- name: Upload Failure Log
117+
uses: actions/upload-artifact@v2
118+
if: failure()
119+
with:
120+
name: poetry-installer-error.log
121+
path: poetry-installer-error-*.log
122+
123+
- name: Verify Installation
124+
run: |
125+
set -e
126+
poetry new foobar
127+
cd foobar
128+
poetry config virtualenvs.in-project true
129+
poetry env use python3
130+
[ "$(poetry run python --version)" == "$(python3 --version)" ] \
131+
|| { echo >&2 "ERROR: Virtual environment Python version do not match system version." && exit 1; }
132+
133+
- name: Uninstall Poetry
134+
run: |
135+
python3 install-poetry.py -y --uninstall
136+
{ type poetry 2>/dev/null >&2 && exit 1; } || exit 0

0 commit comments

Comments
 (0)