Fix python dependencies issues in GHA (#8361)

This commit is contained in:
Anton Tayanovskyy 2021-11-06 03:55:17 -04:00 committed by GitHub
parent f8a98b2a86
commit 99fdad0ed9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 38 additions and 13 deletions

View file

@ -49,7 +49,8 @@ jobs:
registry-url: https://registry.npmjs.org
always-auth: true
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
run: |
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
- name: Install Twine
run: python -m pip install pip twine
- name: Checkout Repo
@ -165,7 +166,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
run: |
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
- name: Setup git
run: |
git config --global user.email "you@example.com"
@ -233,7 +235,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
run: |
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
- name: Setup git
run: |
git config --global user.email "you@example.com"
@ -266,6 +269,9 @@ jobs:
- name: Install
run: |
make install_all
# Install Pulumi Python SDK globally (on CI only) to workaround a
# problem a sub-process in a test failing to find it.
python -m pip install -e sdk/python/env/src
env:
PULUMI_NODE_MODULES: ${{ runner.temp }}/opt/pulumi/node_modules
PULUMI_LOCAL_NUGET: ${{ runner.temp }}/opt/pulumi/nuget

View file

@ -49,7 +49,8 @@ jobs:
registry-url: https://registry.npmjs.org
always-auth: true
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
run: |
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
- name: Install Twine
run: python -m pip install pip twine
- name: Checkout Repo
@ -148,7 +149,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
run: |
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
- name: Setup git
run: |
git config --global user.email "you@example.com"
@ -210,7 +212,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
run: |
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.2.0
with:
@ -243,6 +246,9 @@ jobs:
- name: Install
run: |
make install_all
# Install Pulumi Python SDK globally (on CI only) to workaround a
# problem a sub-process in a test failing to find it.
python -m pip install -e sdk/python/env/src
env:
PULUMI_NODE_MODULES: ${{ runner.temp }}/opt/pulumi/node_modules
PULUMI_LOCAL_NUGET: ${{ runner.temp }}/opt/pulumi/nuget

View file

@ -141,7 +141,8 @@ jobs:
registry-url: https://registry.npmjs.org
always-auth: true
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
run: |
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
- name: Install Twine
run: python -m pip install pip twine
- name: Checkout Repo
@ -241,7 +242,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
run: |
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
- name: Setup git
run: |
git config --global user.email "you@example.com"
@ -309,7 +311,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
run: |
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
- name: Setup git
run: |
git config --global user.email "you@example.com"
@ -349,6 +352,9 @@ jobs:
- name: Install
run: |
make install_all
# Install Pulumi Python SDK globally (on CI only) to workaround a
# problem a sub-process in a test failing to find it.
python -m pip install -e sdk/python/env/src
env:
PULUMI_NODE_MODULES: ${{ runner.temp }}/opt/pulumi/node_modules
PULUMI_LOCAL_NUGET: ${{ runner.temp }}/opt/pulumi/nuget

View file

@ -88,7 +88,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
run: |
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
- name: Setup git
run: |
git config --global user.email "you@example.com"
@ -175,7 +176,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
run: |
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
- name: Setup git
run: |
git config --global user.email "you@example.com"
@ -219,6 +221,9 @@ jobs:
- name: Install
run: |
make install_all
# Install Pulumi Python SDK globally (on CI only) to workaround a
# problem a sub-process in a test failing to find it.
python -m pip install -e sdk/python/env/src
env:
PULUMI_NODE_MODULES: ${{ runner.temp }}/opt/pulumi/node_modules
PULUMI_LOCAL_NUGET: ${{ runner.temp }}/opt/pulumi/nuget

View file

@ -151,7 +151,9 @@ var sdkTests = []sdkTest{
{
Directory: "hyphen-url",
Description: "A resource url with a hyphen in its path",
Skip: codegen.NewStringSet("python/test", "nodejs/test"),
// TODO[pulumi/pulumi#8370]: Re-enable compiling for Go.
SkipCompileCheck: codegen.NewStringSet(golang),
Skip: codegen.NewStringSet("python/test", "nodejs/test"),
},
{
Directory: "output-funcs",

View file

@ -48,7 +48,7 @@ install:: install_package install_plugin
test_fast:: $(TEST_ALL_DEPS)
$(GO_TEST) ${PROJECT_PKGS}
pipenv run pip install ./env/src
pipenv install -e ./env/src
# TODO the ignored test seems to fail in pytest but not unittest. Need to trackdown why
$(RUN_TESTSUITE) python/lib/test pipenv run pytest lib/test --ignore lib/test/automation --ignore lib/test/langhost/resource_thens/test_resource_thens.py
$(RUN_TESTSUITE) python/lib/test/langhost/resource_thens pipenv run python -m unittest lib/test/langhost/resource_thens/test_resource_thens.py