Skip to content

Commit

Permalink
start setting up ci to run Snakemake
Browse files Browse the repository at this point in the history
  • Loading branch information
gipert committed Feb 7, 2025
1 parent 5f3a6b7 commit c51e7bb
Showing 1 changed file with 41 additions and 3 deletions.
44 changes: 41 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lgdo
name: legend-dataflow

on:
workflow_dispatch:
Expand All @@ -16,8 +16,8 @@ env:
FORCE_COLOR: 3

jobs:
build-and-test:
name: Test lgdo with Python
unit-tests:
name: Run legend-dataflow unit tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -39,6 +39,44 @@ jobs:
run: |
python -m pytest
run-dataflow:
if: github.event.pull_request.head.repo.fork == false
name: Run the Snakemake workflow
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
os: [ubuntu-latest, macos-13]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Set LEGEND_METADATA variable
run: |
echo "LEGEND_METADATA=$GITHUB_WORKSPACE/inputs" >> $GITHUB_ENV
- name: Clone legend-metadata
uses: actions/checkout@v4
with:
repository: legend-exp/legend-metadata
fetch-depth: 0
submodules: recursive
token: ${{ secrets.CLONE_LEGEND_METADATA }}
path: ${{ env.LEGEND_METADATA }}

- name: Get dependencies and install legend-dataflow
run: |
python -m pip install --upgrade uv
python -m uv pip install --upgrade .[runprod]
- name: Set the PRODENV variable
run: |
echo "PRODENV=$(realpath $GITHUB_WORKSPACE/..)" >> $GITHUB_ENV
test-coverage:
name: Calculate and upload test coverage
runs-on: ubuntu-latest
Expand Down

0 comments on commit c51e7bb

Please sign in to comment.