Skip to content

Refactor conditional syntax in workflow files to remove unnecessary b… #159

Refactor conditional syntax in workflow files to remove unnecessary b…

Refactor conditional syntax in workflow files to remove unnecessary b… #159

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
validate-pyproject:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/ci/validate-pyproject
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/validate-pyproject@main
if: github.event.repository.name != 'template-python'
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/ci/ruff
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/ruff@main
if: github.event.repository.name != 'template-python'
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/ci/mypy
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/mypy@main
if: github.event.repository.name != 'template-python'
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/ci/pytest
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/pytest@main
if: github.event.repository.name != 'template-python'
bandit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/ci/bandit
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/bandit@main
if: github.event.repository.name != 'template-python'
pip-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/ci/pip-audit
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/pip-audit@main
if: github.event.repository.name != 'template-python'
version-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/ci/version-check
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/version-check@main
if: github.event.repository.name != 'template-python'