Skip to content

Commit

Permalink
build: reuse github workflow from cbi_toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
idiap committed Dec 23, 2024
1 parent 88bab44 commit d88b0f5
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 15 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# SPDX-FileCopyrightText: 2024 Idiap Research Institute <[email protected]>
#
# SPDX-License-Identifier: BSD-3-Clause

name: Make Release

on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- name: Wait for build to succeed
uses: fountainhead/[email protected]
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: build
- name: Check test results
if: steps.wait-for-build.outputs.conclusion == 'failure'
run: |
exit 1
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
32 changes: 32 additions & 0 deletions .github/workflows/python-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# SPDX-FileCopyrightText: 2024 Idiap Research Institute <[email protected]>
#
# SPDX-License-Identifier: BSD-3-Clause

name: Test Python Package

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .
- name: Unittests
run: |
python -m unittest discover tests
15 changes: 0 additions & 15 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit d88b0f5

Please sign in to comment.