Skip to content

Improve CI

Improve CI #24

---
name: "Single Test Simple"
on: # yamllint disable-line rule:truthy
pull_request: {}
# workflow_dispatch: {}
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
env:
NAUTOBOT_VER: "stable"
PYTHON_VER: "3.11"
jobs:
tests:
runs-on: "ubuntu-22.04"
steps:
- name: "Check Out Repository Code"
uses: "actions/checkout@v4"
- name: "Build Docker Image"
uses: "./.github/actions/build-push"
with:
image-prefix: "ghcr.io/${{ github.repository }}/nautobot-dev"
image-tag: "pr-${{ github.event.pull_request.number }}-${{ env.NAUTOBOT_VER }}-py${{ env.PYTHON_VER }}"
pull: true
nautobot-version: "${{ env.NAUTOBOT_VER }}"
password: ${{ secrets.GH_NAUTOBOT_BOT_TOKEN }}
# push: true
python-version: "${{ env.PYTHON_VER }}"
username: ${{ github.actor }}
# - name: "Run Linters"
# uses: "./.github/actions/run-linters"
# with:
# nautobot-version: "${{ env.NAUTOBOT_VER }}"
# python-version: "${{ env.PYTHON_VER }}"
- name: "Unit Tests with Postgres"
uses: "./.github/actions/unittests"
with:
db-backend: "postgres"
nautobot-version: "${{ env.NAUTOBOT_VER }}"
python-version: "${{ env.PYTHON_VER }}"