Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task/6422-add-composite-actions-to-main-repository-workflows #385

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
41 changes: 27 additions & 14 deletions .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,30 @@ permissions: read-all

jobs:
test:
uses: "./.github/workflows/test.yml"
create_nightly:
permissions:
contents: write
needs: test
uses: "platomo/GitHub-workflows/.github/workflows/reusable-create-release-with-assets.yml@main"
secrets:
PLATOMO_BUILDER_ACCESS: ${{ secrets.PLATOMO_BUILDER_ACCESS }}
with:
package-path: OTVision
package-version: nightly
draft-release: false
pre-release: true
delete-existing: true
uses: './.github/workflows/test.yml'
create_nighty:
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update Version
uses: platomo/update-version-py-action@main
with:
version: nightly
file-path: OTVision
- name: Create Release
uses: platomo/build-release-asset-action@main
with:
platomo-token: ${{ secrets.PLATOMO_BUILDER_ACCESS }}
package-version: nightly
save-artifacts: true
- name: Publish Release
uses: platomo/publish-release-action@main
with:
package-version: nightly
delete-existing: true
pre-release: true
py-version: "3.11"
draft-release: false
41 changes: 27 additions & 14 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,30 @@ permissions: read-all
jobs:
test:
if: endsWith(github.event.base_ref, 'main')
uses: "./.github/workflows/test.yml"
create_release:
permissions:
contents: write
needs: test
uses: "platomo/GitHub-workflows/.github/workflows/reusable-create-release-with-assets.yml@main"
secrets:
PLATOMO_BUILDER_ACCESS: ${{ secrets.PLATOMO_BUILDER_ACCESS }}
with:
package-path: OTVision
package-version: ${{ github.ref_name }}
draft-release: false
pre-release: false
delete-existing: false
uses: './.github/workflows/test.yml'
create-release:
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update Version
uses: platomo/update-version-py-action@main
with:
version: ${{ github.ref_name }}
file-path: OTVision
- name: Create Release
uses: platomo/build-release-asset-action@main
with:
platomo-token: ${{ secrets.PLATOMO_BUILDER_ACCESS }}
package-version: ${{ github.ref_name }}
save-artifacts: true
- name: Publish Release
uses: platomo/publish-release-action@main
with:
package-version: ${{ github.ref_name }}
delete-existing: false
pre-release: false
py-version: "3.11"
draft-release: false
22 changes: 14 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ permissions: read-all

jobs:
test:
name: Run Python tests on multiple OS and Python versions
name: Execute tests across various operating systems and Python versions.
strategy:
fail-fast: True
matrix:
os: [ubuntu-latest, windows-latest]
py: ["3.11"]
uses: "platomo/GitHub-workflows/.github/workflows/reusable-python-tests.yml@main"
with:
os: ${{ matrix.os }}
py-version: ${{ matrix.py }}
test_path: OTVision
ffmpeg-required: True
fail-fast: true
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Python Tests
uses: platomo/test-python-app-action@v1
timeout-minutes: 60
with:
py-version: ${{ matrix.py }}
package-path: OTVision
test-path: tests
ffmpeg-required: true
Loading