dedicated GHA flow for terrarium packages #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: terrarium_check | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
pytest: | |
runs-on: [ self-hosted, linux ] | |
container: | |
image: "python:3.12.0" | |
strategy: | |
fail-fast: false | |
matrix: | |
value: | |
- bi_ci | |
- dl_repmanager | |
name: "🐊[pytest]${{ matrix.value }}" | |
steps: | |
- name: 'Cleanup build folder' | |
run: | | |
rm -rf ./* || true | |
rm -rf ./.??* || true | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- run: git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }} | |
- run: | | |
pip install --no-input poetry pytest | |
cd "${{ matrix.value }}" | |
pip install --no-input . | |
pytest "${{ matrix.value }}_tests" |