Skip to content

BatCave Build - 12563937625 #105

BatCave Build - 12563937625

BatCave Build - 12563937625 #105

Workflow file for this run

name: BatCave Build
run-name: BatCave Build - ${{ github.run_id }}
on:
workflow_dispatch:
push:
branches:
- main
- release/*
- feature/*
pull_request:
branches:
- main
- release/*
- feature/*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
UNIT_TEST_DIR: test_results
jobs:
test:
uses: tardis4500/shared-actions/.github/workflows/vjer.yml@main
with:
action: test
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.12"
- "3.13"
publish-test-results:
name: "Publish Tests Results"
needs: test
runs-on: ubuntu-latest
permissions:
checks: write
if: always()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: ${{ env.UNIT_TEST_DIR }}
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: "${{ env.UNIT_TEST_DIR }}/**/*.xml"
build:
needs: test
uses: tardis4500/shared-actions/.github/workflows/vjer.yml@main
with:
action: build
os: ubuntu-latest
python-version: "3.12"
use-flit: true
install-test:
needs: build
uses: tardis4500/shared-actions/.github/workflows/install-test.yml@main
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
test-action: "python -c 'import batcave; print(batcave.__version__)'"
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.12"
- "3.13"
pre_release:
if: (github.event_name != 'pull_request') && ((github.ref_name == 'main') || startsWith(github.ref_name, 'release/'))
uses: ./.github/workflows/pypi-publish.yml
# uses: tardis4500/shared-actions/.github/workflows/pypi-publish.yml@main
secrets: inherit
with:
environment: pre_release
release:
if: (github.event_name != 'pull_request') && ((github.ref_name == 'main') || startsWith(github.ref_name, 'release/'))
needs: pre_release
uses: ./.github/workflows/pypi-publish.yml
# uses: tardis4500/shared-actions/.github/workflows/pypi-publish.yml@main
secrets: inherit
with:
environment: release