-
Notifications
You must be signed in to change notification settings - Fork 61
98 lines (86 loc) · 2.69 KB
/
support-matrix.yml
File metadata and controls
98 lines (86 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Support Matrix
on:
push:
paths:
- 'install-poetry.py'
- '.github/workflows/support-matrix.yml'
branches:
- main
pull_request:
paths:
- 'install-poetry.py'
- '.github/workflows/support-matrix.yml'
branches:
- '**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
feature-matrix:
name: ${{ matrix.python-version }} / install-poetry.py ${{ matrix.args }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"]
experimental: [false]
args:
- ""
- "--version 1.1.15"
- "--version 1.2.0"
- "--preview"
- "--git https://github.com/python-poetry/poetry.git"
- "--path ./poetry"
include:
- args: "--version 1.1.15"
python-version: "3.6"
experimental: false
- python-version: "3.11-dev"
experimental: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: python-poetry/poetry
path: poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
python install-poetry.py -y ${{ matrix.args }}
echo "$HOME/.local/bin" >> $GITHUB_PATH
poetry --version
- name: Upload Failure Log
uses: actions/upload-artifact@v2
if: failure()
with:
name: poetry-installer-error.log
path: poetry-installer-error-*.log
- name: Test new project
run: |
poetry new test_project
cd test_project
poetry env use python3
if [ "$(poetry run python --version)" != "$(python3 --version)" ]; then
echo "ERROR: Virtual environment Python version does not match expected system version" >&2
exit 1
fi
poetry debug info
- name: Test existing project
if: ${{ !contains(matrix.args, '--version 1.1') }} # Poetry makes use of Poetry 1.2+ features
working-directory: poetry
run: |
poetry install
poetry build
poetry run poetry --version
poetry run poetry debug info
- name: Uninstall Poetry
run: |
python install-poetry.py -y --uninstall
if command -v "poetry" >/dev/null; then
which poetry
echo "ERROR: Failed to uninstall Poetry?" >&2
exit 1
fi