Skip to content

Commit

Permalink
update .github/workflows/tics.yaml (#49)
Browse files Browse the repository at this point in the history
Co-authored-by: soleng-terraform[bot] <168111096+soleng-terraform[bot]@users.noreply.github.com>
  • Loading branch information
soleng-terraform[bot] authored Dec 3, 2024
1 parent a9152a4 commit d54603a
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions .github/workflows/tics.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is centrally managed as a template file in https://github.com/canonical/solutions-engineering-automation
# To update the file:
# - Edit it in the canonical/solutions-engineering-automation repository.
# - Open a PR with the changes.
# - When the PR merges, the soleng-terraform bot will open a PR to the target repositories with the changes.
name: TICS

on:
Expand All @@ -14,25 +19,6 @@ jobs:
with:
fetch-depth: 0

- name: Verify snap builds successfully
id: build
uses: canonical/action-build@v1

- name: Upload the built snap
uses: actions/upload-artifact@v4
with:
name: snap_artifact
path: ${{ steps.build.outputs.snap }}

tics-report:
needs: build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install dependencies
run: |
sudo apt update
Expand All @@ -44,10 +30,12 @@ jobs:
# workflows breaking all at once when a new major version is released.
python -m pip install 'tox<5'
- name: Get the snap artifact
uses: actions/download-artifact@v4
with:
name: snap_artifact
# The snap is built already in the check workflow and available as an artifact,
# but we want this TICS workflow to be independent,
# so we can run the workflow periodically or on demand.
- name: Build the snap
id: build
uses: canonical/action-build@v1

- name: Test with tox and produce coverage report
run: tox -e tics
Expand Down

0 comments on commit d54603a

Please sign in to comment.