Skip to content

Commit

Permalink
[WIP] dedicated GHA flow for terrarium packages
Browse files Browse the repository at this point in the history
  • Loading branch information
evilkost committed Nov 10, 2023
1 parent 8c87dda commit 6f27811
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/terrarium_check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: main

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
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 --yes poetry pytest
cd {{ matrix.value }}
pip install .
pytest "{{ matrix.value }}_tests"

0 comments on commit 6f27811

Please sign in to comment.