@@ -70,32 +70,28 @@ jobs:
7070 exit 1
7171 fi
7272 - name : Checkout
73- if : ${{ env.REQUIRED_SECRET != '' }}
7473 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7574 - name : Setup LXD
76- if : ${{ env.REQUIRED_SECRET != '' && contains(fromJSON('["lxd_vm", "lxd_container"]'), env.CLOUD_INIT_PLATFORM ) }}
75+ if : ${{ contains(fromJSON('["lxd_vm", "lxd_container"]'), env.CLOUD_INIT_PLATFORM ) }}
7776 uses : canonical/setup-lxd@8c6a87bfb56aa48f3fb9b830baa18562d8bfd4ee # v0.1.2
7877 with :
7978 channel : 6/stable
8079 - name : Clean workspace
8180 run : |
8281 rm -rf ${{ github.workspace }}/cloud_init_test_logs/
8382 - name : Setup pycloudlib
84- if : ${{ env.REQUIRED_SECRET != '' }}
8583 run : |
8684 ssh-keygen -P "" -q -f ~/.ssh/id_rsa
8785 echo "${{ secrets.PYCLOUDLIB_TOML }}" > /home/$USER/.config/pycloudlib.toml
8886 - name : Install Dependencies
89- if : ${{ env.REQUIRED_SECRET != '' }}
9087 run : |
9188 sudo DEBIAN_FRONTEND=noninteractive apt-get -qy update
9289 sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox distro-info-data devscripts
9390 - name : Run integration Tests
94- if : ${{ env.REQUIRED_SECRET != '' }}
9591 run : |
9692 tox -e integration-tests -- --junitxml="${{ github.workspace }}/reports/junit-report-${{ inputs.platform }}-${{ inputs.release }}.xml" --color=yes ${{ inputs.filter_tests || 'tests/integration_tests' }} | tee pytest-${{ inputs.platform }}-${{ inputs.release }}-${{ inputs.image_type }}.log
9793 - name : Publish Test Report with Insights
98- if : ${{ env.REQUIRED_SECRET != '' && always() }}
94+ if : ${{ always() }}
9995 uses : ctrf-io/github-test-reporter@024bc4b64d997ca9da86833c6b9548c55c620e40 # v1.0.26
10096 with :
10197 report-path : ' ${{ github.workspace }}/reports/junit-report-${{ inputs.platform}}-${{ inputs.release }}.xml'
@@ -125,7 +121,7 @@ jobs:
125121 env :
126122 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
127123 - name : Upload failure artifacts
128- if : ${{ env.REQUIRED_SECRET != '' && failure() }}
124+ if : ${{ failure() }}
129125 uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
130126 with :
131127 name : failure-${{ github.job }}
0 commit comments