-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (39 loc) · 1.32 KB
/
single-test-simple.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
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 }}"
load: 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 }}"