diff --git a/.github/workflows/build-nightly.yml b/.github/workflows/build-nightly.yml index 6bb6ec49..0e61a37e 100644 --- a/.github/workflows/build-nightly.yml +++ b/.github/workflows/build-nightly.yml @@ -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 diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 150dc138..e80313a5 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8d498f0a..8a5a9886 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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