Edit test step to use downloaded artifacts

This commit is contained in:
Anton Tayanovskyy 2021-11-18 20:32:53 -05:00
parent 17b49ed6fd
commit 10b9606ed7
2 changed files with 61 additions and 4 deletions

View file

@ -40,7 +40,8 @@ jobs:
# Due to the use of CGO in `pulumi` this cross-compilation step
# cannot proceed on `ubuntu-latest`, which would have been
# preferable.
runs-on: macos-latest
# runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
@ -115,7 +116,7 @@ jobs:
echo "PYPY_VERSION=$(pulumictl get version --language python)" >> $GITHUB_ENV
- name: Build Pulumi Python SDK wheel
run: |
# TODO unify with sdk/python/Makefile once that does not use pyenv
# TODO unify with sdk/python/Makefile once that does not use pipenv
cp README.md sdk/python/lib
cd sdk/python/lib
sed -i.bak "s/\${VERSION}/$PYPY_VERSION/g" setup.py

View file

@ -35,7 +35,7 @@ concurrency:
jobs:
build-pulumi-binaries:
uses: pulumi/pulumi/.github/workflows/build.yml@0306cb1b34f3fddeca4e06ea580e3e59f1400b95
uses: pulumi/pulumi/.github/workflows/build.yml@e596407a346826b210cadd743a40a5c2b1e5336e
inspect-pulumi-binaries:
runs-on: ubuntu-latest
@ -194,9 +194,12 @@ jobs:
- run: mkdir -p ${{ runner.temp }}/opt/pulumi/nuget
- run: dotnet nuget add source ${{ runner.temp }}/opt/pulumi/nuget
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install yarn
run: |
npm install -g yarn
- name: Install pipenv
run: |
python -m pip install --upgrade pipenv pip requests wheel urllib3 chardet
@ -230,6 +233,59 @@ jobs:
with:
repo: t0yv0/goteststats
tag: v0.0.7
- name: Download Pulumi Go Binaries (linux-x64)
if: ${{ matrix.platform == 'ubuntu-latest' }}
uses: actions/download-artifact@v2
with:
name: pulumi-linux-x64.tar.gz
path: artifacts/go
- name: Download Pulumi Go Binaries (darwin-x64)
if: ${{ matrix.platform == 'macos-latest' }}
uses: actions/download-artifact@v2
with:
name: pulumi-darwin-x64.tar.gz
path: artifacts/go
- name: Install Pulumi Go Binaries
run: |
mkdir -p bin
tar -xf artifacts/go/*.tar.gz -C bin
echo "$PWD/bin/pulumi" >> $GITHUB_PATH
- name: Download Pulumi .NET NuGet packages
uses: actions/download-artifact@v2
with:
name: pulumi-nuget-packages
# path set to match PULUMI_LOCAL_NUGET
path: ${{ runner.temp }}/opt/pulumi/nuget
- name: Verify Pulumi Version
run: |
which pulumi
pulumi version
find ./bin
- name: Inspect downloaded artifacts
run: |
find artifacts
echo "PULUMI_LOCAL_NUGET=$PULUMI_LOCAL_NUGET"
ls $PULUMI_LOCAL_NUGET
env:
PULUMI_LOCAL_NUGET: ${{ runner.temp }}/opt/pulumi/nuget
- name: Ensure dependencies for the Node SDK
run: |
cd sdk/nodejs
make ensure
- name: Build the Node SDK
run: |
cd sdk/nodejs
make build_package
cd bin
yarn link
- name: Ensure dependencies for the Python SDK
run: |
cd sdk/python
make ensure
- name: Install Python SDK
run: |
cd sdk/python
make build_package
- name: Test
run: make TEST_ALL_DEPS= test_all
env: