Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/build/build-wheel
if: ${{ github.event.repository.name == 'template-python' }}
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/build/build-wheel@main
if: ${{ github.event.repository.name != 'template-python' }}
if: github.event.repository.name != 'template-python'

verify-structure:
runs-on: ubuntu-latest
needs: build-wheel
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/build/verify-structure
if: ${{ github.event.repository.name == 'template-python' }}
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/build/verify-structure@main
if: ${{ github.event.repository.name != 'template-python' }}
if: github.event.repository.name != 'template-python'
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,60 +14,60 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/ci/validate-pyproject
if: ${{ github.event.repository.name == 'template-python' }}
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/validate-pyproject@main
if: ${{ github.event.repository.name != 'template-python' }}
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' }}
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/ruff@main
if: ${{ github.event.repository.name != 'template-python' }}
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' }}
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/mypy@main
if: ${{ github.event.repository.name != 'template-python' }}
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' }}
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/pytest@main
if: ${{ github.event.repository.name != 'template-python' }}
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' }}
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/bandit@main
if: ${{ github.event.repository.name != 'template-python' }}
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' }}
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/pip-audit@main
if: ${{ github.event.repository.name != 'template-python' }}
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' }}
if: github.event.repository.name == 'template-python'
- uses: javidahmed64592/template-python/.github/actions/ci/version-check@main
if: ${{ github.event.repository.name != 'template-python' }}
if: github.event.repository.name != 'template-python'
24 changes: 12 additions & 12 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@ jobs:
- uses: actions/checkout@v6

- uses: ./.github/actions/docker/build-start-services
if: ${{ github.event.repository.name == 'python-template-server' }}
if: github.event.repository.name == 'python-template-server'
- uses: javidahmed64592/python-template-server/.github/actions/docker/build-start-services@main
if: ${{ github.event.repository.name != 'python-template-server' }}
if: github.event.repository.name != 'python-template-server'

- uses: ./.github/actions/docker/show-logs
if: ${{ github.event.repository.name == 'python-template-server' }}
if: github.event.repository.name == 'python-template-server'
- uses: javidahmed64592/python-template-server/.github/actions/docker/show-logs@main
if: ${{ github.event.repository.name != 'python-template-server' }}
if: github.event.repository.name != 'python-template-server'

- uses: ./.github/actions/docker/check-containers
if: ${{ github.event.repository.name == 'python-template-server' }}
if: github.event.repository.name == 'python-template-server'
with:
port: 443
- uses: javidahmed64592/python-template-server/.github/actions/docker/check-containers@main
if: ${{ github.event.repository.name != 'python-template-server' }}
if: github.event.repository.name != 'python-template-server'
with:
port: 443

- uses: ./.github/actions/docker/stop-services
if: ${{ github.event.repository.name == 'python-template-server' }}
if: github.event.repository.name == 'python-template-server'
- uses: javidahmed64592/python-template-server/.github/actions/docker/stop-services@main
if: ${{ github.event.repository.name != 'python-template-server' }}
if: github.event.repository.name != 'python-template-server'

prepare-release:
runs-on: ubuntu-latest
Expand All @@ -49,9 +49,9 @@ jobs:
- uses: javidahmed64592/template-python/.github/actions/setup/install-python-dev@main

- uses: ./.github/actions/docker/prepare-release
if: ${{ github.event.repository.name == 'python-template-server' }}
if: github.event.repository.name == 'python-template-server'
- uses: javidahmed64592/python-template-server/.github/actions/docker/prepare-release@main
if: ${{ github.event.repository.name != 'python-template-server' }}
if: github.event.repository.name != 'python-template-server'

publish-release:
runs-on: ubuntu-latest
Expand All @@ -66,10 +66,10 @@ jobs:
- uses: javidahmed64592/template-python/.github/actions/setup/install-python-core@main

- uses: ./.github/actions/docker/check-repo-name
if: ${{ github.event.repository.name == 'python-template-server' }}
if: github.event.repository.name == 'python-template-server'
id: check_repo_name_local
- uses: javidahmed64592/python-template-server/.github/actions/docker/check-repo-name@main
if: ${{ github.event.repository.name != 'python-template-server' }}
if: github.event.repository.name != 'python-template-server'
id: check_repo_name_remote
- id: check_repo_name
run: echo "should_release=${{ steps.check_repo_name_local.outputs.should_release || steps.check_repo_name_remote.outputs.should_release }}" >> $GITHUB_OUTPUT
Expand Down