-
-
Notifications
You must be signed in to change notification settings - Fork 10
83 lines (69 loc) · 2.24 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
name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
NETBOX_CONFIGURATION: netbox.configuration_lifecycle
strategy:
matrix:
python-version: ['3.11'] # '3.8', '3.9', '3.10',
node-version: ['14.x']
#services:
# redis:
# image: redis
# ports:
# - 6379:6379
# postgres:
# image: postgres
# env:
# POSTGRES_USER: netbox
# POSTGRES_PASSWORD: netbox
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
# ports:
# - 5432:5432
steps:
- name: Check out NetBox
uses: actions/checkout@v4
with:
repository: 'netbox-community/netbox'
ref: 'master'
path: 'netbox'
- name: Check out repo
uses: actions/checkout@v4
with:
path: 'netbox-lifecycle'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies & set up configuration
run: |
python -m pip install --upgrade pip
pip install -r netbox/requirements.txt
pip install pycodestyle coverage tblib
- name: Copy configuration
run: |
cp netbox-lifecycle/contrib/configuration_lifecycle.py netbox/netbox/netbox/configuration_lifecycle.py
#- name: Build documentation
# run: mkdocs build
#- name: Collect static files
# run: python netbox/manage.py collectstatic --no-input
#- name: Check for missing migrations
# run: python netbox/manage.py makemigrations --check
#- name: Check PEP8 compliance
# run: pycodestyle --ignore=W504,E501 --exclude=node_modules netbox/
#- name: Check UI ESLint, TypeScript, and Prettier Compliance
# run: yarn --cwd netbox/project-static validate
#- name: Validate Static Asset Integrity
# run: scripts/verify-bundles.sh
#- name: Run tests
# run: coverage run --source="netbox/" netbox/manage.py test netbox/ --parallel
#- name: Show coverage report
# run: coverage report --skip-covered --omit '*/migrations/*,*/tests/*'