Compare commits

...

6 commits

Author SHA1 Message Date
a2cc36d2f8 chore(deps): update dependency mypy to v1.11.0
All checks were successful
build pypackage and create release / release-github (pull_request) Successful in 12s
check code / check-code (pull_request) Successful in 23s
2024-07-19 20:18:15 +02:00
f4e877e2fe remove lefthook from justfile
All checks were successful
check code / check-code (push) Successful in 52s
Signed-off-by: Ivan Schaller <ivan@schaller.sh>
2024-07-17 20:35:33 +02:00
65723753f6 update ci ciles
Some checks failed
check code / check-code (push) Has been cancelled
Signed-off-by: Ivan Schaller <ivan@schaller.sh>
2024-07-17 20:35:11 +02:00
c88acdb0f4 Merge pull request 'chore(deps): update lscr.io/linuxserver/netbox docker tag to v4.0.7' (#27) from renovate/lscr.io-linuxserver-netbox-4.x into main
All checks were successful
check code / check-code (push) Successful in 35s
Reviewed-on: #27
2024-07-10 09:58:58 +02:00
b528c58eae chore(deps): update lscr.io/linuxserver/netbox docker tag to v4.0.7
All checks were successful
build and publish / update-changelog (pull_request) Has been skipped
build and publish / release-pypackage (pull_request) Successful in 41s
check code / check-code (pull_request) Successful in 40s
2024-07-10 08:21:19 +02:00
6772f0a5e0 update to netbox>4.0 and netbox-plugin-dns>1.0
Some checks failed
check code / check-code (push) Failing after 11m2s
2024-07-08 12:49:03 +02:00
7 changed files with 86 additions and 31 deletions

View file

@ -1,4 +1,4 @@
name: build and publish
name: build pypackage and create release
on:
push:
@ -9,16 +9,55 @@ on:
branches: [main, master]
jobs:
release-pypackage:
uses: actions/workflows/.gitea/workflows/release_pypackage.yml@master
release-github:
runs-on: ubuntu-latest
env:
HATCH_INDEX_REPO: main
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.PACKAGE_TOKEN }}
steps:
- name: checkout code
uses: actions/checkout@v4
with:
repository: main
secrets:
username: __token__
token: ${{ secrets.PACKAGE_TOKEN }}
gh-token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0
update-changelog:
uses: actions/workflows/.gitea/workflows/update_changelog.yml@master
- uses: actions/setup-python@v5
with:
branch: main
python-version: "3.11"
- name: setup go
uses: actions/setup-go@v4
with:
go-version: ">=1.20"
- name: install hatc h
run: pip install -U hatch hatchling
- name: build package
run: hatch build --clean
- name: install auto-changelog
run: npm install auto-changelog
- name: generate changelog
run: >-
npx auto-changelog -t keepachangelog
--commit-limit 50 --backfill-limit 50
--ignore-commit-pattern '[Bb]ump version|[Uu]pdate changelog|[Mm]erge pull request'
- name: get release notes
id: release-notes
uses: olofvndrhr/releasenote-gen@v1
- name: publish package
if: gitea.event_name != 'pull_request'
run: hatch publish --yes --no-prompt
- name: create gitea release
uses: https://gitea.com/actions/release-action@main
if: gitea.event_name != 'pull_request'
with:
title: ${{ gitea.ref_name }}
body: ${{ steps.release-notes.outputs.releasenotes }}
files: |-
dist/**

View file

@ -9,6 +9,23 @@ on:
jobs:
check-code:
uses: actions/workflows/.gitea/workflows/check_python_hatch.yml@master
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
run-tests: true
python-version: "3.11"
- name: install hatch
run: pip install -U hatch
- name: test codestyle
run: hatch run lint:style
- name: test typing
run: hatch run lint:typing
- name: run tests
run: hatch run default:test

View file

@ -1,4 +1,4 @@
name: build and release
name: build pypackage and create release
on:
push:
@ -17,7 +17,7 @@ jobs:
HATCH_INDEX_AUTH: ${{ secrets.PACKAGE_TOKEN }}
steps:
- name: checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
@ -25,12 +25,18 @@ jobs:
with:
python-version: "3.11"
- name: install hatch
run: pip install -U hatch hatchling
- name: build package
run: hatch build --clean
- name: install auto-changelog
run: npm install -g auto-changelog
run: npm install auto-changelog
- name: generate changelog
run: >-
auto-changelog -t keepachangelog
npx auto-changelog -t keepachangelog
--commit-limit 50 --backfill-limit 50
--ignore-commit-pattern '[Bb]ump version|[Uu]pdate changelog|[Mm]erge pull request'
@ -38,12 +44,6 @@ jobs:
id: release-notes
uses: olofvndrhr/releasenote-gen@v1
- name: install hatch
run: pip install -U hatch hatchling
- name: build package
run: hatch build --clean
- name: create github release
uses: ncipollo/release-action@v1
if: github.event_name != 'pull_request'

View file

@ -1,6 +1,6 @@
FROM lscr.io/linuxserver/netbox:3.7.6
FROM lscr.io/linuxserver/netbox:4.0.7
RUN pip install -U \
wheel \
setuptools \
netbox-plugin-dns==0.22.8
netbox-plugin-dns==1.0.4

View file

@ -14,7 +14,7 @@ PLUGINS_CONFIG = {
"zone_nameservers": ["ns1.example.com", "ns2.example.com"],
"zone_soa_mname": "ns1.example.com",
"zone_soa_rname": "admin.example.com",
"tolerate_underscores_in_hostnames": False,
"tolerate_underscores_in_labels": False,
"tolerate_leading_underscore_types": [
"TXT",
"SRV",

View file

@ -19,7 +19,6 @@ show_system_info:
setup:
asdf install
lefthook install
create_venv:
@echo "creating venv"

View file

@ -69,7 +69,7 @@ validate = ["cd dev && octodns-validate --debug --config-file sync.yml {args}"]
[tool.hatch.envs.lint]
python = "3.11"
detached = true
dependencies = ["mypy==1.10.0", "ruff==0.4.8"]
dependencies = ["mypy==1.11.0", "ruff==0.4.8"]
[tool.hatch.envs.lint.scripts]
typing = "mypy --non-interactive --install-types {args:src/octodns_netbox_dns}"