mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 00:28:16 -06:00
tweak ci
This commit is contained in:
parent
f949aa334b
commit
21c5b8276b
21
.github/workflows/auto-assign-issue.yml
vendored
21
.github/workflows/auto-assign-issue.yml
vendored
@ -1,21 +0,0 @@
|
|||||||
# auto-assign-issue (https://github.com/marketplace/actions/auto-assign-issue)
|
|
||||||
name: Issue assignment
|
|
||||||
|
|
||||||
on:
|
|
||||||
issues:
|
|
||||||
types: [opened]
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
issues: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
auto-assign:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: pozil/auto-assign-issue@v2
|
|
||||||
if: "contains(github.event.issue.labels.*.name, 'status: needs triage')"
|
|
||||||
with:
|
|
||||||
# Weighted assignments
|
|
||||||
assignees: arthanson:3, jeremystretch:3, DanSheps
|
|
||||||
numOfAssignee: 1
|
|
||||||
abortIfPreviousAssignees: true
|
|
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -20,9 +20,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
NETBOX_CONFIGURATION: netbox.configuration_testing
|
NETBOX_CONFIGURATION: netbox.configuration_testing
|
||||||
|
DD_CIVISIBILITY_AGENTLESS_ENABLED: "true"
|
||||||
|
DD_API_KEY: ${{ secrets.DD_API_KEY }}
|
||||||
|
DD_ENV: ci-gha
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.10', '3.11', '3.12']
|
python-version: ['3.12']
|
||||||
node-version: ['18.x']
|
node-version: ['18.x']
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
@ -94,7 +97,5 @@ jobs:
|
|||||||
run: scripts/verify-bundles.sh
|
run: scripts/verify-bundles.sh
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: coverage run --source="netbox/" netbox/manage.py test netbox/ --parallel
|
run: ddtrace-run netbox/manage.py test netbox/ --parallel --pattern --pattern "test_models.py"
|
||||||
|
|
||||||
- name: Show coverage report
|
|
||||||
run: coverage report --skip-covered --omit '*/migrations/*,*/tests/*'
|
|
||||||
|
32
.github/workflows/close-incomplete-issues.yml
vendored
32
.github/workflows/close-incomplete-issues.yml
vendored
@ -1,32 +0,0 @@
|
|||||||
# close-stale-issues (https://github.com/marketplace/actions/close-stale-issues)
|
|
||||||
name: Close incomplete issues
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '15 4 * * *'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
actions: write
|
|
||||||
issues: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
stale:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/stale@v9
|
|
||||||
with:
|
|
||||||
close-issue-message: >
|
|
||||||
This issue is being closed as no further information has been provided. If
|
|
||||||
you would like to revisit this topic, please first modify your original post
|
|
||||||
to include all the requested detail, and then ask that the issue be reopened.
|
|
||||||
days-before-stale: 7
|
|
||||||
days-before-close: 7
|
|
||||||
only-issue-labels: 'status: revisions needed'
|
|
||||||
operations-per-run: 100
|
|
||||||
remove-stale-when-updated: false
|
|
||||||
stale-issue-label: 'pending closure'
|
|
||||||
stale-issue-message: >
|
|
||||||
This is a reminder that additional information is needed in order to further
|
|
||||||
triage this issue. If the requested details are not provided, the issue will
|
|
||||||
soon be closed automatically.
|
|
52
.github/workflows/close-stale-issues.yml
vendored
52
.github/workflows/close-stale-issues.yml
vendored
@ -1,52 +0,0 @@
|
|||||||
# close-stale-issues (https://github.com/marketplace/actions/close-stale-issues)
|
|
||||||
name: Close stale issues/PRs
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 4 * * *'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
actions: write
|
|
||||||
issues: write
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
stale:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/stale@v9
|
|
||||||
with:
|
|
||||||
# General parameters
|
|
||||||
operations-per-run: 100
|
|
||||||
remove-stale-when-updated: false
|
|
||||||
|
|
||||||
# Issue parameters
|
|
||||||
close-issue-message: >
|
|
||||||
This issue has been automatically closed due to lack of activity. In an
|
|
||||||
effort to reduce noise, please do not comment any further. Note that the
|
|
||||||
core maintainers may elect to reopen this issue at a later date if deemed
|
|
||||||
necessary.
|
|
||||||
days-before-issue-stale: 90
|
|
||||||
days-before-issue-close: 30
|
|
||||||
exempt-issue-labels: 'status: accepted,status: backlog,status: blocked'
|
|
||||||
stale-issue-label: 'pending closure'
|
|
||||||
stale-issue-message: >
|
|
||||||
This issue has been automatically marked as stale because it has not had
|
|
||||||
recent activity. It will be closed if no further activity occurs. NetBox
|
|
||||||
is governed by a small group of core maintainers which means not all opened
|
|
||||||
issues may receive direct feedback. **Do not** attempt to circumvent this
|
|
||||||
process by "bumping" the issue; doing so will result in its immediate closure
|
|
||||||
and you may be barred from participating in any future discussions. Please see
|
|
||||||
our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
|
|
||||||
|
|
||||||
# Pull request parameters
|
|
||||||
close-pr-message: >
|
|
||||||
This PR has been automatically closed due to lack of activity.
|
|
||||||
days-before-pr-stale: 15
|
|
||||||
days-before-pr-close: 15
|
|
||||||
stale-pr-label: 'pending closure'
|
|
||||||
stale-pr-message: >
|
|
||||||
This PR has been automatically marked as stale because it has not had
|
|
||||||
recent activity. It will be closed automatically if no further action is
|
|
||||||
taken.
|
|
23
.github/workflows/lock-threads.yml
vendored
23
.github/workflows/lock-threads.yml
vendored
@ -1,23 +0,0 @@
|
|||||||
# lock-threads (https://github.com/marketplace/actions/lock-threads)
|
|
||||||
name: Lock threads
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 3 * * *'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
issues: write
|
|
||||||
pull-requests: write
|
|
||||||
discussions: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lock:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: dessant/lock-threads@v5
|
|
||||||
with:
|
|
||||||
issue-inactive-days: 90
|
|
||||||
pr-inactive-days: 30
|
|
||||||
discussion-inactive-days: 180
|
|
||||||
issue-lock-reason: 'resolved'
|
|
45
.github/workflows/update-translation-strings.yml
vendored
45
.github/workflows/update-translation-strings.yml
vendored
@ -1,45 +0,0 @@
|
|||||||
name: Update translation strings
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 5 * * *'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
env:
|
|
||||||
LOCALE: "en"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
makemessages:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
NETBOX_CONFIGURATION: netbox.configuration_testing
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Check out repo
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: 3.11
|
|
||||||
|
|
||||||
- name: Install system dependencies
|
|
||||||
run: sudo apt install -y gettext
|
|
||||||
|
|
||||||
- name: Install Python dependencies
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install -r requirements.txt
|
|
||||||
|
|
||||||
- name: Run makemessages
|
|
||||||
run: python netbox/manage.py makemessages -l ${{ env.LOCALE }}
|
|
||||||
|
|
||||||
- name: Commit changes
|
|
||||||
uses: EndBug/add-and-commit@v9
|
|
||||||
with:
|
|
||||||
add: 'netbox/translations/'
|
|
||||||
default_author: github_actions
|
|
||||||
message: 'Update source translation strings'
|
|
@ -1,3 +1,4 @@
|
|||||||
|
ddtrace==2.9.2
|
||||||
Django==5.0.7
|
Django==5.0.7
|
||||||
django-cors-headers==4.4.0
|
django-cors-headers==4.4.0
|
||||||
django-debug-toolbar==4.3.0
|
django-debug-toolbar==4.3.0
|
||||||
|
Loading…
Reference in New Issue
Block a user