-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (83 loc) · 2.7 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
name: ci
on:
pull_request:
paths:
- "**/**"
jobs:
super-linter:
name: Super-Linter
runs-on: ubuntu-22.04
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v7
env:
DEFAULT_BRANCH: main
FILTER_REGEX_EXCLUDE: \.github.*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: .
PYTHON_BLACK_CONFIG_FILE: pyproject.toml
PYTHON_ISORT_CONFIG_FILE: pyproject.toml
PYTHON_PYLINT_CONFIG_FILE: pyproject.toml
VALIDATE_ALL_CODEBASE: false
VALIDATE_CHECKOV: false
VALIDATE_JSCPD: false
VALIDATE_MARKDOWN_PRETTIER: false
VALIDATE_PYTHON_FLAKE8: false
VALIDATE_PYTHON_PYINK: false
VALIDATE_PYTHON_RUFF: false
VALIDATE_YAML_PRETTIER: false
# pytest:
# name: Pytests
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout Code
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: "3.12"
# - name: Install Dependencies
# run: |
# if [ -e setup.py ]; then python3 -m pip install .; fi
# if [ -e requirements.txt ]; then python3 -m pip install -r requirements.txt; fi
# python3 -m pip install pytest pytest-cov
# - name: Build coverage file
# run: |
# pytest --junitxml=/tmp/pytest.xml --cov-report=term-missing:skip-covered --cov=app tests/ | tee /tmp/pytest-coverage.txt
# - name: Pytest coverage comment
# uses: MishaKav/pytest-coverage-comment@main
# with:
# pytest-coverage-path: /tmp/pytest-coverage.txt
# junitxml-path: /tmp/pytest.xml
# title: Coverage Report - `${{ matrix.script_dir }}`
# hide-report: false
# create-new-comment: false
# hide-comment: false
# report-only-changed-files: false
# unique-id-for-comment: ${{ matrix.script_dir }}
# junitxml-title: JUnit Xml Summary - `${{ matrix.script_dir }}`
test-docker-build:
name: Test Docker Build
runs-on: ubuntu-24.04
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
id: docker_build
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm64
push: false