Improve CI #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | ||
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: | ||
IMAGE_PREFIX: "ghcr.io/${{ github.repository }}/nautobot-dev" | ||
IMAGE_TAG: "pr-${{ github.event.pull_request.number }}-${{ env.NAUTOBOT_VER }}-py${{ env.PYTHON_VER }}" | ||
Check failure on line 14 in .github/workflows/single-test-simple.yml GitHub Actions / Single Test SimpleInvalid workflow file
|
||
NAUTOBOT_VER: "stable" | ||
PYTHON_VER: "3.11" | ||
RUN_MYSQL_TESTS: "false" | ||
jobs: | ||
tests: | ||
runs-on: "ubuntu-22.04" | ||
steps: | ||
- name: "Check Out Repository Code" | ||
uses: "actions/checkout@v4" | ||
- name: "Build Docker Image" | ||
uses: "./.github/actions/docker-image" | ||
with: | ||
image-prefix: "${{ env.IMAGE_PREFIX }}" | ||
image-tag: "${{ env.IMAGE_TAG }}" | ||
nautobot-version: "${{ env.NAUTOBOT_VER }}" | ||
password: "${{ secrets.GH_NAUTOBOT_BOT_TOKEN }}" | ||
pull: true | ||
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 MySQL" | ||
if: | | ||
env.RUN_MYSQL_TESTS == 'true' | ||
uses: "./.github/actions/unittests" | ||
with: | ||
db-backend: "mysql" | ||
nautobot-version: "${{ env.NAUTOBOT_VER }}" | ||
python-version: "${{ env.PYTHON_VER }}" | ||
- name: "Unit Tests with PostgreSQL" | ||
uses: "./.github/actions/unittests" | ||
with: | ||
db-backend: "postgres" | ||
nautobot-version: "${{ env.NAUTOBOT_VER }}" | ||
python-version: "${{ env.PYTHON_VER }}" |