Skip to content

chore(meta): Relicense snap package to Apache-2.0 OR MIT #7

chore(meta): Relicense snap package to Apache-2.0 OR MIT

chore(meta): Relicense snap package to Apache-2.0 OR MIT #7

Workflow file for this run

# Copyright 2023-2024 Canonical Ltd. and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
name: spack snap tests
on:
workflow_call:
pull_request:
jobs:
inclusive-naming-check:
name: Inclusive naming check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: woke
uses: get-woke/woke-action@v0
with:
# Cause the check to fail on any broke rules
fail-on-error: true
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: python3 -m pip install tox
- name: Run linters
run: tox -e lint
unit-test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: python3 -m pip install tox
- name: Build snap locally
uses: snapcore/action-build@v1
id: snapcraft
- name: Setup LXD
uses: canonical/[email protected]
- name: Run tests
run: tox -e unit