Skip to content

fix: remove unused pytest import in test_css_to_yaml #25

fix: remove unused pytest import in test_css_to_yaml

fix: remove unused pytest import in test_css_to_yaml #25

name: Release Please
on:
push:
branches:
- main
env:
NETBOX_VERSION: "4.5.x" # update when testing against a new NetBox version
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check out release PR branch
if: ${{ steps.release.outputs.pr }}
uses: actions/checkout@v4
with:
ref: ${{ fromJson(steps.release.outputs.pr).headBranchName }}
- name: Insert new row into COMPATIBILITY.md
if: ${{ steps.release.outputs.pr }}
run: |
VERSION="${{ fromJson(steps.release.outputs.pr).title }}"
VERSION="${VERSION##* }"
sed -i "/^|---|/a | ${VERSION} | ${{ env.NETBOX_VERSION }} | 3.12+ | Tested |" COMPATIBILITY.md
- name: Commit COMPATIBILITY.md to release PR branch
if: ${{ steps.release.outputs.pr }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add COMPATIBILITY.md
git diff --cached --quiet || git commit -m "chore: add ${VERSION} to COMPATIBILITY.md"
git push
- name: Check out repo for PyPI publish
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4
- name: Set up Python
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Build package
if: ${{ steps.release.outputs.release_created }}
run: |
pip install build
python -m build
- name: Publish to PyPI
if: ${{ steps.release.outputs.release_created }}
uses: pypa/gh-action-pypi-publish@release/v1