Fix python dependencies issues in GHA (#8361)
This commit is contained in:
parent
f8a98b2a86
commit
99fdad0ed9
12
.github/workflows/master.yml
vendored
12
.github/workflows/master.yml
vendored
|
@ -49,7 +49,8 @@ jobs:
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
always-auth: true
|
always-auth: true
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
uses: dschep/install-pipenv-action@v1
|
run: |
|
||||||
|
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
|
||||||
- name: Install Twine
|
- name: Install Twine
|
||||||
run: python -m pip install pip twine
|
run: python -m pip install pip twine
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
|
@ -165,7 +166,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
uses: dschep/install-pipenv-action@v1
|
run: |
|
||||||
|
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
|
||||||
- name: Setup git
|
- name: Setup git
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "you@example.com"
|
git config --global user.email "you@example.com"
|
||||||
|
@ -233,7 +235,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
uses: dschep/install-pipenv-action@v1
|
run: |
|
||||||
|
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
|
||||||
- name: Setup git
|
- name: Setup git
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "you@example.com"
|
git config --global user.email "you@example.com"
|
||||||
|
@ -266,6 +269,9 @@ jobs:
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
make install_all
|
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:
|
env:
|
||||||
PULUMI_NODE_MODULES: ${{ runner.temp }}/opt/pulumi/node_modules
|
PULUMI_NODE_MODULES: ${{ runner.temp }}/opt/pulumi/node_modules
|
||||||
PULUMI_LOCAL_NUGET: ${{ runner.temp }}/opt/pulumi/nuget
|
PULUMI_LOCAL_NUGET: ${{ runner.temp }}/opt/pulumi/nuget
|
||||||
|
|
12
.github/workflows/prerelease.yml
vendored
12
.github/workflows/prerelease.yml
vendored
|
@ -49,7 +49,8 @@ jobs:
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
always-auth: true
|
always-auth: true
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
uses: dschep/install-pipenv-action@v1
|
run: |
|
||||||
|
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
|
||||||
- name: Install Twine
|
- name: Install Twine
|
||||||
run: python -m pip install pip twine
|
run: python -m pip install pip twine
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
|
@ -148,7 +149,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
uses: dschep/install-pipenv-action@v1
|
run: |
|
||||||
|
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
|
||||||
- name: Setup git
|
- name: Setup git
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "you@example.com"
|
git config --global user.email "you@example.com"
|
||||||
|
@ -210,7 +212,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
uses: dschep/install-pipenv-action@v1
|
run: |
|
||||||
|
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
|
||||||
- name: Install pulumictl
|
- name: Install pulumictl
|
||||||
uses: jaxxstorm/action-install-gh-release@v1.2.0
|
uses: jaxxstorm/action-install-gh-release@v1.2.0
|
||||||
with:
|
with:
|
||||||
|
@ -243,6 +246,9 @@ jobs:
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
make install_all
|
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:
|
env:
|
||||||
PULUMI_NODE_MODULES: ${{ runner.temp }}/opt/pulumi/node_modules
|
PULUMI_NODE_MODULES: ${{ runner.temp }}/opt/pulumi/node_modules
|
||||||
PULUMI_LOCAL_NUGET: ${{ runner.temp }}/opt/pulumi/nuget
|
PULUMI_LOCAL_NUGET: ${{ runner.temp }}/opt/pulumi/nuget
|
||||||
|
|
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
@ -141,7 +141,8 @@ jobs:
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
always-auth: true
|
always-auth: true
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
uses: dschep/install-pipenv-action@v1
|
run: |
|
||||||
|
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
|
||||||
- name: Install Twine
|
- name: Install Twine
|
||||||
run: python -m pip install pip twine
|
run: python -m pip install pip twine
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
|
@ -241,7 +242,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
uses: dschep/install-pipenv-action@v1
|
run: |
|
||||||
|
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
|
||||||
- name: Setup git
|
- name: Setup git
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "you@example.com"
|
git config --global user.email "you@example.com"
|
||||||
|
@ -309,7 +311,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
uses: dschep/install-pipenv-action@v1
|
run: |
|
||||||
|
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
|
||||||
- name: Setup git
|
- name: Setup git
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "you@example.com"
|
git config --global user.email "you@example.com"
|
||||||
|
@ -349,6 +352,9 @@ jobs:
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
make install_all
|
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:
|
env:
|
||||||
PULUMI_NODE_MODULES: ${{ runner.temp }}/opt/pulumi/node_modules
|
PULUMI_NODE_MODULES: ${{ runner.temp }}/opt/pulumi/node_modules
|
||||||
PULUMI_LOCAL_NUGET: ${{ runner.temp }}/opt/pulumi/nuget
|
PULUMI_LOCAL_NUGET: ${{ runner.temp }}/opt/pulumi/nuget
|
||||||
|
|
|
@ -88,7 +88,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
uses: dschep/install-pipenv-action@v1
|
run: |
|
||||||
|
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
|
||||||
- name: Setup git
|
- name: Setup git
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "you@example.com"
|
git config --global user.email "you@example.com"
|
||||||
|
@ -175,7 +176,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
uses: dschep/install-pipenv-action@v1
|
run: |
|
||||||
|
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
|
||||||
- name: Setup git
|
- name: Setup git
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "you@example.com"
|
git config --global user.email "you@example.com"
|
||||||
|
@ -219,6 +221,9 @@ jobs:
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
make install_all
|
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:
|
env:
|
||||||
PULUMI_NODE_MODULES: ${{ runner.temp }}/opt/pulumi/node_modules
|
PULUMI_NODE_MODULES: ${{ runner.temp }}/opt/pulumi/node_modules
|
||||||
PULUMI_LOCAL_NUGET: ${{ runner.temp }}/opt/pulumi/nuget
|
PULUMI_LOCAL_NUGET: ${{ runner.temp }}/opt/pulumi/nuget
|
||||||
|
|
|
@ -151,7 +151,9 @@ var sdkTests = []sdkTest{
|
||||||
{
|
{
|
||||||
Directory: "hyphen-url",
|
Directory: "hyphen-url",
|
||||||
Description: "A resource url with a hyphen in its path",
|
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",
|
Directory: "output-funcs",
|
||||||
|
|
|
@ -48,7 +48,7 @@ install:: install_package install_plugin
|
||||||
|
|
||||||
test_fast:: $(TEST_ALL_DEPS)
|
test_fast:: $(TEST_ALL_DEPS)
|
||||||
$(GO_TEST) ${PROJECT_PKGS}
|
$(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
|
# 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 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
|
$(RUN_TESTSUITE) python/lib/test/langhost/resource_thens pipenv run python -m unittest lib/test/langhost/resource_thens/test_resource_thens.py
|
||||||
|
|
Loading…
Reference in a new issue