Commit cb19dc05 by Arun Babu Neelicattu Committed by Steph Samson

ci: allow bootstrap script args in matrix

parent affabe04
...@@ -25,10 +25,12 @@ jobs: ...@@ -25,10 +25,12 @@ jobs:
os: [Ubuntu, MacOS, Windows] os: [Ubuntu, MacOS, Windows]
python-version: [3.6, 3.7, 3.8, 3.9] python-version: [3.6, 3.7, 3.8, 3.9]
experimental: [false] experimental: [false]
bootstrap-args: [""]
include: include:
- os: Ubuntu - os: Ubuntu
python-version: "3.10.0-alpha - 3.10.0" python-version: "3.10.0-alpha - 3.10.0"
experimental: true experimental: true
bootstrap-args: "--git https://github.com/python-poetry/poetry.git"
fail-fast: false fail-fast: false
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
...@@ -43,15 +45,11 @@ jobs: ...@@ -43,15 +45,11 @@ jobs:
shell: bash shell: bash
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))") run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
- name: Bootstrap poetry (experimental)
if: ${{ matrix.experimental == true }}
shell: bash
run: python install-poetry.py -y --path .
- name: Bootstrap poetry - name: Bootstrap poetry
if: ${{ matrix.experimental == false }}
shell: bash shell: bash
run: python install-poetry.py -y run: |
curl -sL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py \
| python - -y ${{ matrix.bootstrap-args }}
- name: Update PATH - name: Update PATH
if: ${{ matrix.os != 'Windows' }} if: ${{ matrix.os != 'Windows' }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment