add catalog validation to archive
This commit is contained in:
34
catalog_validation/ix-source/.github/workflows/ci.yml
vendored
Normal file
34
catalog_validation/ix-source/.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-deb:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ixsystems/catalog_validation:latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Build deb package
|
||||
run: >
|
||||
dpkg-buildpackage
|
||||
-B
|
||||
--no-sign
|
||||
-jauto
|
||||
|
||||
- name: Create artifacts dir
|
||||
run: mkdir artifacts
|
||||
if: success()
|
||||
|
||||
- name: Move artifacts
|
||||
run: mv ../*.deb artifacts
|
||||
if: success()
|
||||
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: py-catalog-validation
|
||||
path: artifacts
|
||||
if: success()
|
28
catalog_validation/ix-source/.github/workflows/docker_image.yml
vendored
Normal file
28
catalog_validation/ix-source/.github/workflows/docker_image.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
name: build_image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
tags: ixsystems/catalog_validation:latest
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
21
catalog_validation/ix-source/.github/workflows/lint.yml
vendored
Normal file
21
catalog_validation/ix-source/.github/workflows/lint.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: flake8
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.8
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install flake8
|
||||
- name: Analysing the code with flake8
|
||||
run: flake8 .
|
27
catalog_validation/ix-source/.github/workflows/test.yaml
vendored
Normal file
27
catalog_validation/ix-source/.github/workflows/test.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: catalog_validation_test
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/truenas/middleware:master
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup dependencies
|
||||
run: |
|
||||
/usr/bin/install-dev-tools
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install --break-system-packages -r catalog_validation/pytest/requirements.txt
|
||||
pip install --break-system-packages -r requirements.txt
|
||||
|
||||
- name: Installing catalog validation
|
||||
run: python setup.py install
|
||||
|
||||
- name: Running test
|
||||
run: pytest catalog_validation/pytest/
|
Reference in New Issue
Block a user