Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync develop & main #112

Merged
merged 214 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
f7d9dcd
Update to OnboardingTask list view and models to replace UUID with in…
Sep 1, 2021
5177bb9
Exclude running tasks from bulk delete view.
Sep 7, 2021
c1c92b4
Merge pull request #23 from pszulczewski/22-task_ordering
mzbroch Sep 8, 2021
85c1c56
Release 1.1.1
mzbroch Sep 8, 2021
2c1c0ca
Merge pull request #25 from nautobot/develop-1.1.1
mzbroch Sep 8, 2021
1273ab3
Migration from Travis to GH Actions (#26)
ubajze Sep 30, 2021
0fb4359
FAQ updates for RQ and Celery workers
mzbroch Dec 14, 2021
aeb8654
Merge pull request #29 from nautobot/mzb-doc-Dec14
dgarros Dec 14, 2021
1d9b789
Replace docs structure
Jun 9, 2022
7183384
Sync from cookie
Jun 9, 2022
6aeb10d
Move existing docs into new structure
Jun 9, 2022
3ec70a4
Update README and remove FAQ doc
Jun 9, 2022
3e8f7de
Add app icon
Jun 9, 2022
cb2a2c6
README formatting
Jun 9, 2022
cfb9bf3
README update
cmsirbu Jun 9, 2022
c0d6608
Update CODEOWNERS
chadell Jun 29, 2022
e2db1fb
Fix CI and bump python up to 3.7
Jun 29, 2022
66726fe
Merge pull request #36 from pszulczewski/fix_CI
mzbroch Jun 30, 2022
4eccb60
Extend unittests to cover issues #31 #32
Jun 29, 2022
5226a0c
Update docstring
Jun 30, 2022
3e48953
Merge pull request #35 from pszulczewski/tests_covering_issue_31_32
mzbroch Jun 30, 2022
d6fb5ef
Bump django from 3.2.13 to 3.2.14
dependabot[bot] Jul 5, 2022
2bc5e22
Merge pull request #39 from nautobot/dependabot/pip/django-3.2.14
chadell Jul 6, 2022
cb54a07
Fixing Netmiko imports
mzbroch Jul 29, 2022
992b855
Pyproject.toml and poetry lock updates
mzbroch Jul 29, 2022
d10a582
Merge pull request #45 from nautobot/mzb-updates
mzbroch Jul 30, 2022
e4f01a0
Release 1.1.2
mzbroch Jul 30, 2022
56dec4d
Merge pull request #46 from nautobot/mzb-1.1.2
mzbroch Aug 1, 2022
0380d76
Merge branch 'develop' into cmsirbu-docs-reorg
cmsirbu Aug 31, 2022
e35f9f4
Merge pull request #33 from nautobot/update-codeowners
scetron Sep 27, 2022
8d61a33
Merge pull request #24 from pszulczewski/exclude_running_from_bulk_de…
scetron Sep 27, 2022
443f089
Docs rework WIP
cmsirbu Oct 4, 2022
ad0891b
Existing docs migrated to new structure
cmsirbu Oct 5, 2022
333a935
change port to be in line with other cookie cutter
scetron Oct 25, 2022
3ec1532
minor changes
scetron Oct 25, 2022
8bc57a2
add getting started
scetron Oct 25, 2022
6f0fc1e
update menu image
scetron Oct 25, 2022
bd71238
add images and update getting started
scetron Oct 25, 2022
0d5daee
Remove per file license
itdependsnetworks Nov 24, 2022
c15ba34
further doc reviews and updates
scetron Dec 13, 2022
d5cbddf
update matrix + contributions
scetron Dec 13, 2022
0ffbf81
remove .vscode from git
scetron Dec 13, 2022
d61fb25
Fix typos
cmsirbu Dec 14, 2022
da8b638
adjust note to make more prominent
scetron Dec 14, 2022
5cf0f41
Merge pull request #58 from itdependsnetworks/license1
glennmatthews Dec 19, 2022
2aaf8fa
Update environment to NTC standards (#59)
itdependsnetworks Dec 20, 2022
0b27558
Update __init__.py
jedelman8 Dec 20, 2022
7d77a8b
Update docs/user/app_overview.md
scetron Dec 20, 2022
30c3c78
Merge pull request #64 from nautobot/jedelman8-patch-1
scetron Dec 22, 2022
7cc98be
Update owners and maintainers
scetron Dec 22, 2022
f362e8e
Merge branch 'develop' into cmsirbu-docs-reorg
scetron Jan 5, 2023
5610bb2
update lock file
scetron Jan 6, 2023
5dc3841
Merge pull request #53 from nautobot/cmsirbu-docs-reorg
scetron Jan 6, 2023
90328b5
Fix link to logo
cmsirbu Jan 11, 2023
e991966
Merge pull request #68 from cmsirbu/cmsirbu-fixlogo
chadell Jan 11, 2023
a996eca
Delete `onboarding_tasks_list.html` so that `OnboardingTaskListView` …
HanlinMiao Jan 23, 2023
d67fe19
update link
scetron Feb 2, 2023
f5189cc
Merge pull request #72 from nautobot/docs-update
scetron Feb 3, 2023
de63c39
Fix reverse migration for migrations 0002, 0003
mzbroch Feb 9, 2023
6b42aac
Merge pull request #75 from nautobot/develop-mzb-reverse-migrations
mzbroch Feb 9, 2023
f0cf5f2
Add upstream testing changes.
bryanculver Dec 6, 2022
68ab28b
Test the workflow
bryanculver Dec 6, 2022
e9ea0a7
chore: Sync with template
snaselj Mar 15, 2023
81997b3
fix: Failing mysql CI unittest
snaselj Mar 15, 2023
ba7fd5a
chore: Disable failing mysql CI unittest
snaselj Mar 15, 2023
990a1dc
chore: Remove upstream CI push trigger
snaselj Mar 15, 2023
d1b3f88
fix readme links
scetron Mar 17, 2023
b5e3671
Merge pull request #82 from nautobot/fix-readme-links
scetron Mar 17, 2023
a2cbdb3
add results metrics gauges!
scetron Mar 24, 2023
1b72478
add docstrings
scetron Mar 27, 2023
416dc17
linting
scetron Mar 27, 2023
edbb349
Merge pull request #87 from nautobot/add-metrics
scetron Mar 27, 2023
642af40
Merge pull request #60 from nautobot/bsc-2023-upstream-testing
scetron Apr 4, 2023
0cfdcb9
Fix mysql not working in github actions. (#80)
itdependsnetworks Apr 6, 2023
4f502a2
Release Notes for v1.1.3
mzbroch Jul 26, 2023
8115266
Merge pull request #97 from nautobot/develop-rel113
scetron Jul 26, 2023
6d0cda9
Cleaning up release notes for 1.2
mzbroch Aug 10, 2023
9a6224b
Drop support for python 3.7
mzbroch Aug 10, 2023
8d39bf3
Update CI to drop Python 3.7
mzbroch Aug 10, 2023
d39b344
Fixing black newlines in migration files
mzbroch Aug 10, 2023
8925b6f
Pylint updates
mzbroch Aug 10, 2023
8886832
Fixing black and pylint
mzbroch Aug 10, 2023
e9be4bd
update dependencies in project files
scetron Aug 30, 2023
a187afb
add pylint-nautobot
scetron Aug 30, 2023
ed8d3e4
update imports and some fields
scetron Aug 30, 2023
8e278e3
update fields (site -> location)
scetron Aug 30, 2023
b47f96e
adjust rule
scetron Aug 31, 2023
af3b226
update Role, Location
scetron Aug 31, 2023
e2c5f16
update role and charfields
scetron Aug 31, 2023
a160cff
preliminary site/location
scetron Aug 31, 2023
8692e9d
remove extra else
scetron Aug 31, 2023
c16179c
remove extra import
scetron Aug 31, 2023
0bf5d8b
remove OnboardingTaskFeedBulkTable
scetron Aug 31, 2023
850f1e5
dict() to {}
scetron Aug 31, 2023
9064898
first site-> location
scetron Aug 31, 2023
f33b3bd
part 1 migration
scetron Aug 31, 2023
3aeccd9
update dependency
scetron Aug 31, 2023
1001fe8
add migrations
scetron Aug 31, 2023
2f99770
Site -> Location
scetron Aug 31, 2023
0c32122
remove slug from tests
scetron Aug 31, 2023
56ef109
site-> location
scetron Aug 31, 2023
083b733
site, role updates
scetron Aug 31, 2023
34e1c3b
move site to location
scetron Aug 31, 2023
25011bd
update role content type
scetron Aug 31, 2023
079e871
add/adjust migrations
scetron Aug 31, 2023
3e1c752
fix migration order
scetron Aug 31, 2023
b9e904c
site -> location
scetron Aug 31, 2023
b4f7e72
Merge pull request #102 from nautobot/develop-120
mzbroch Sep 5, 2023
7f8aeef
Updating 1.2.0 release date
mzbroch Sep 5, 2023
0b1272a
Merge pull request #104 from nautobot/develop-120
mzbroch Sep 5, 2023
703a31b
Updating GitHub token reference
mzbroch Sep 5, 2023
94c1bad
Merge pull request #105 from nautobot/develop-120
mzbroch Sep 5, 2023
58d23ab
adjust to_field
scetron Sep 5, 2023
711e1e9
Update role to custom/subclass rolefield
scetron Sep 5, 2023
74c2547
update class
scetron Sep 5, 2023
ed52788
update migrations
scetron Sep 5, 2023
061454d
adjust migration imports
scetron Sep 6, 2023
32e9434
update tests for location_type, status
scetron Sep 6, 2023
1f16426
update field target
scetron Sep 7, 2023
32b7c27
don't build docs for now
scetron Sep 7, 2023
6fb2b43
add serializer - may not be needed
scetron Sep 7, 2023
4329ce4
add [de]serializer call
scetron Sep 7, 2023
0076761
use built ins
scetron Sep 7, 2023
3c57862
move to inherited serializer
scetron Sep 8, 2023
cf6aca9
use viewsets
scetron Sep 8, 2023
cb99739
update urls
scetron Sep 8, 2023
08000ea
use choicefield with charfield model field
scetron Sep 8, 2023
0bb1709
use serializer for creds
scetron Sep 8, 2023
30df2b0
update model tests
scetron Sep 8, 2023
22a6039
clean up serializer
scetron Sep 8, 2023
9c62030
adjust model rolefield
scetron Sep 8, 2023
c9a30dc
update poetry lock
scetron Sep 8, 2023
97fdd79
update migration to custom rolefield
scetron Sep 8, 2023
6433ebd
rename, reclass bulk edit form
scetron Sep 13, 2023
b1c35ad
move to ui viewset
scetron Sep 13, 2023
3672d69
setting content types requires iterable
scetron Sep 13, 2023
7b3de02
remove slug reference
scetron Sep 14, 2023
daac04e
add unique criteria for nautral key
scetron Sep 14, 2023
8039993
customfield name->label
scetron Sep 14, 2023
4ddfeba
move slug reference to names or similar
scetron Sep 14, 2023
30c093a
update field lookups
scetron Sep 14, 2023
c29e7bb
interface requires status
scetron Sep 14, 2023
5a83dda
add network_driver field to platform
scetron Sep 14, 2023
d6e9799
add content type when creating roles
scetron Sep 14, 2023
d3b2611
remove slug transformation
scetron Sep 14, 2023
a17c9e8
remove slug code
scetron Sep 14, 2023
a3c0691
adjust manufacturer search from slug
scetron Sep 14, 2023
798b1ef
move name to label for CF
scetron Sep 14, 2023
11a91d1
add a default color
scetron Sep 14, 2023
2eb89f3
Update tests!
scetron Sep 14, 2023
74fc684
adjust creating IPaddresses
scetron Sep 14, 2023
390b68e
update views to remove 'updates'
scetron Sep 14, 2023
b2679d6
adjust models
scetron Sep 14, 2023
be63d9e
fix navmenu import button
scetron Sep 14, 2023
00d2ee3
fix serializers
scetron Sep 14, 2023
649868f
update api tests
scetron Sep 14, 2023
b3576f4
move from viewset to specific mixins
scetron Sep 14, 2023
871ab5e
add action_buttons
scetron Sep 14, 2023
993abd6
Remove old form class name and spaces
scetron Sep 14, 2023
f2f0202
adjust model + migration
scetron Sep 14, 2023
fdf2582
remove slug from platform
scetron Sep 14, 2023
0997cea
update kwargs to new names
scetron Sep 14, 2023
91b26f1
adjust templates
scetron Sep 14, 2023
d270ebd
fix location
scetron Sep 14, 2023
395cda4
fix spacing and location
scetron Sep 14, 2023
d70068a
update ordering
scetron Sep 15, 2023
a8014e2
add clean method for default blank for CharField
scetron Sep 15, 2023
4f41931
updateto dynamicmodelchoicefield
scetron Sep 15, 2023
dd018e7
remove extraneous imports + troubleshooting method
scetron Sep 15, 2023
a2f5baa
remove extra methods for ts, imports
scetron Sep 15, 2023
9f553f6
fix serializer, add validate step
scetron Sep 15, 2023
71dd9ed
update migrations
scetron Sep 15, 2023
7b1584d
linting
scetron Sep 15, 2023
89a8dc5
unused imports + vars
scetron Sep 15, 2023
9631b65
remove devicechoicetype generator
scetron Sep 15, 2023
3f35e5b
add docstring
scetron Sep 15, 2023
6c6067b
pydoc
scetron Sep 16, 2023
4710006
remove unused import
scetron Sep 16, 2023
a6b6462
remove bulkeditform
scetron Sep 16, 2023
f605ec7
linting
scetron Sep 16, 2023
4cb3f7e
add prefix back
scetron Sep 16, 2023
4f91e61
linting
scetron Sep 16, 2023
2dba29a
adjust serializer to return name
scetron Sep 16, 2023
bc03ab6
remove location to_field_name
scetron Sep 18, 2023
7221daa
get_for_model causes issues
scetron Sep 21, 2023
dab6e88
remove comments
scetron Sep 21, 2023
a9feeaf
remove old properties
scetron Sep 21, 2023
328a44b
remove old template
scetron Sep 21, 2023
acb0fa2
Update docs dependencies
scetron Sep 21, 2023
71ec33a
remove draft
scetron Sep 21, 2023
b7b52c5
remove draft
scetron Sep 21, 2023
ccaa705
remove old comment
scetron Sep 21, 2023
5e807b3
remove comments
scetron Sep 21, 2023
c784134
linting
scetron Sep 21, 2023
038ef0f
fix data migration
scetron Sep 22, 2023
62d3567
recreate migration and adjust model
scetron Sep 25, 2023
9699c98
separate field data/model migrations
scetron Sep 25, 2023
2c43d33
remove automigration
scetron Sep 25, 2023
3020d62
Merge branch 'develop' into next-2.0
scetron Sep 25, 2023
d675d1b
happy linter happy life
scetron Sep 25, 2023
5900a82
update lock
scetron Sep 25, 2023
2273a50
update CI for 2.0
scetron Sep 26, 2023
2a80436
update lock + nautobot rc dependency
scetron Sep 26, 2023
2c6386a
linting + tests
scetron Sep 26, 2023
a7fa0b4
2.0.0rc1
scetron Sep 26, 2023
85a84f2
update to rc4, fix test, fix yaml error
gsnider2195 Sep 28, 2023
3245797
Merge pull request #108 from nautobot/u/gas-test-fix-2.0rc4
scetron Sep 28, 2023
bbd66fd
updates for release
scetron Sep 29, 2023
6b4f2b3
updates for 2.0
scetron Sep 29, 2023
7b99110
Version -> 2.0
scetron Sep 29, 2023
e4fd681
update ci
scetron Sep 29, 2023
7889409
Merge pull request #109 from nautobot/next-2.0-release-readiness
scetron Sep 29, 2023
7198dc2
Merge pull request #106 from nautobot/next-2.0
scetron Sep 29, 2023
417396d
resolve issue with missing migrations (#111)
whitej6 Oct 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .bandit.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
---
skips: []
# No need to check for security issues in the test scripts!
exclude_dirs:
- "./tests/"
- "./.venv/"
4 changes: 3 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[flake8]
# E501: Line length is enforced by Black, so flake8 doesn't need to check it
# W503: Black disagrees with this rule, as does PEP 8; Black wins
ignore = E501, W503, F811, F401
ignore = E501, W503
exclude =
.venv
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Default owners for all files in this repository
* @dgarros @mzbroch
* @mzbroch @scetron @glennmatthews @chadell
248 changes: 248 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,248 @@
---
name: "CI"
concurrency: # Cancel any existing runs of this workflow for this same PR
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
on: # yamllint disable-line rule:truthy rule:comments
push:
branches:
- "main"
- "develop"
tags:
- "v*"
pull_request: ~

env:
PLUGIN_NAME: "nautobot-plugin-device-onboarding"

jobs:
black:
runs-on: "ubuntu-20.04"
env:
INVOKE_NAUTOBOT_DEVICE_ONBOARDING_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Linting: black"
run: "poetry run invoke black"
bandit:
runs-on: "ubuntu-20.04"
env:
INVOKE_NAUTOBOT_DEVICE_ONBOARDING_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Linting: bandit"
run: "poetry run invoke bandit"
pydocstyle:
runs-on: "ubuntu-20.04"
env:
INVOKE_NAUTOBOT_DEVICE_ONBOARDING_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Linting: pydocstyle"
run: "poetry run invoke pydocstyle"
flake8:
runs-on: "ubuntu-20.04"
env:
INVOKE_NAUTOBOT_DEVICE_ONBOARDING_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Linting: flake8"
run: "poetry run invoke flake8"
yamllint:
runs-on: "ubuntu-20.04"
env:
INVOKE_NAUTOBOT_DEVICE_ONBOARDING_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Linting: yamllint"
run: "poetry run invoke yamllint"
pylint:
needs:
- "bandit"
- "pydocstyle"
- "flake8"
- "yamllint"
- "black"
runs-on: "ubuntu-20.04"
strategy:
fail-fast: true
matrix:
python-version: ["3.10"]
nautobot-version: ["2.0.0"]
env:
INVOKE_NAUTOBOT_DEVICE_ONBOARDING_PYTHON_VER: "${{ matrix.python-version }}"
INVOKE_NAUTOBOT_DEVICE_ONBOARDING_NAUTOBOT_VER: "${{ matrix.nautobot-version }}"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Set up Docker Buildx"
id: "buildx"
uses: "docker/setup-buildx-action@v1"
- name: "Build"
uses: "docker/build-push-action@v2"
with:
builder: "${{ steps.buildx.outputs.name }}"
context: "./"
push: false
load: true
tags: "${{ env.PLUGIN_NAME }}/nautobot:${{ matrix.nautobot-version }}-py${{ matrix.python-version }}"
file: "./development/Dockerfile"
cache-from: "type=gha,scope=${{ matrix.nautobot-version }}-py${{ matrix.python-version }}"
cache-to: "type=gha,scope=${{ matrix.nautobot-version }}-py${{ matrix.python-version }}"
build-args: |
NAUTOBOT_VER=${{ matrix.nautobot-version }}
PYTHON_VER=${{ matrix.python-version }}
- name: "Copy credentials"
run: "cp development/creds.example.env development/creds.env"
- name: "Linting: pylint"
run: "poetry run invoke pylint"
unittest:
needs:
- "pylint"
strategy:
fail-fast: true
matrix:
python-version: ["3.10"]
db-backend: ["postgresql"]
nautobot-version: ["2.0.0"]

runs-on: "ubuntu-20.04"
env:
INVOKE_NAUTOBOT_DEVICE_ONBOARDING_PYTHON_VER: "${{ matrix.python-version }}"
INVOKE_NAUTOBOT_DEVICE_ONBOARDING_NAUTOBOT_VER: "${{ matrix.nautobot-version }}"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v4"
- name: "Set up Docker Buildx"
id: "buildx"
uses: "docker/setup-buildx-action@v1"
- name: "Build"
uses: "docker/build-push-action@v2"
with:
builder: "${{ steps.buildx.outputs.name }}"
context: "./"
push: false
load: true
tags: "${{ env.PLUGIN_NAME }}/nautobot:${{ matrix.nautobot-version }}-py${{ matrix.python-version }}"
file: "./development/Dockerfile"
cache-from: "type=gha,scope=${{ matrix.nautobot-version }}-py${{ matrix.python-version }}"
cache-to: "type=gha,scope=${{ matrix.nautobot-version }}-py${{ matrix.python-version }}"
build-args: |
NAUTOBOT_VER=${{ matrix.nautobot-version }}
PYTHON_VER=${{ matrix.python-version }}
- name: "Copy credentials"
run: "cp development/creds.example.env development/creds.env"
- name: "Use Mysql invoke settings when needed"
run: "cp invoke.mysql.yml invoke.yml"
if: "matrix.db-backend == 'mysql'"
- name: "Run Tests"
run: "poetry run invoke unittest"
publish_gh:
needs:
- "unittest"
name: "Publish to GitHub"
runs-on: "ubuntu-20.04"
if: "startsWith(github.ref, 'refs/tags/v')"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Set up Python"
uses: "actions/setup-python@v2"
with:
python-version: "3.10"
- name: "Install Python Packages"
run: "pip install poetry"
- name: "Set env"
run: "echo RELEASE_VERSION=${GITHUB_REF:10} >> $GITHUB_ENV"
- name: "Run Poetry Version"
run: "poetry version $RELEASE_VERSION"
- name: "Run Poetry Build"
run: "poetry build"
- name: "Upload binaries to release"
uses: "svenstaro/upload-release-action@v2"
with:
repo_token: "${{ secrets.GH_NAUTOBOT_BOT_TOKEN }}"
file: "dist/*"
tag: "${{ github.ref }}"
overwrite: true
file_glob: true
publish_pypi:
needs:
- "unittest"
name: "Push Package to PyPI"
runs-on: "ubuntu-20.04"
if: "startsWith(github.ref, 'refs/tags/v')"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Set up Python"
uses: "actions/setup-python@v2"
with:
python-version: "3.10"
- name: "Install Python Packages"
run: "pip install poetry"
- name: "Set env"
run: "echo RELEASE_VERSION=${GITHUB_REF:10} >> $GITHUB_ENV"
- name: "Run Poetry Version"
run: "poetry version $RELEASE_VERSION"
- name: "Run Poetry Build"
run: "poetry build"
- name: "Push to PyPI"
uses: "pypa/gh-action-pypi-publish@release/v1"
with:
user: "__token__"
password: "${{ secrets.PYPI_API_TOKEN }}"
slack-notify:
needs:
- "publish_gh"
- "publish_pypi"
runs-on: "ubuntu-20.04"
env:
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}"
SLACK_MESSAGE: >-
*NOTIFICATION: NEW-RELEASE-PUBLISHED*\n
Repository: <${{ github.server_url }}/${{ github.repository }}|${{ github.repository }}>\n
Release: <${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.ref_name }}|${{ github.ref_name }}>\n
Published by: <${{ github.server_url }}/${{ github.actor }}|${{ github.actor }}>
steps:
- name: "Send a notification to Slack"
# ENVs cannot be used directly in job.if. This is a workaround to check
# if SLACK_WEBHOOK_URL is present.
if: "env.SLACK_WEBHOOK_URL != ''"
uses: "slackapi/[email protected]"
with:
payload: |
{
"text": "${{ env.SLACK_MESSAGE }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ env.SLACK_MESSAGE }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}"
SLACK_WEBHOOK_TYPE: "INCOMING_WEBHOOK"
13 changes: 13 additions & 0 deletions .github/workflows/upstream_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: "Nautobot Upstream Monitor"

on: # yamllint disable-line rule:truthy rule:comments
schedule:
- cron: "0 4 */2 * *" # every other day at midnight

jobs:
upstream-test:
uses: "nautobot/nautobot/.github/workflows/plugin_upstream_testing_base.yml@develop"
with: # Below could potentially be collapsed into a single argument if a concrete relationship between both is enforced
invoke_context_name: "NAUTOBOT_DEVICE_ONBOARDING"
plugin_name: "nautobot-device-onboarding"
Loading
Loading