Skip to content

Commit

Permalink
Try GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Jul 24, 2024
1 parent 6359d0b commit 6e0ab49
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Sentinel

on:
push:
branches:
- master
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-suite:
runs-on: ubuntu-latest

strategy:
matrix:
container: ["julienpeloton/fink-ci:latest"]

container:
image: ${{ matrix.container }}

env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

steps:
- uses: actions/checkout@v2

- name: Set up env from container variables
run: |
echo "JAVA_HOME=$(dirname $(dirname $(readlink -f $(which java))))" >> $GITHUB_ENV
echo "PYTHONPATH=$SPARK_HOME/python/lib/py4j-0.10.9.7-src.zip:${FINK_HOME}:${PYTHONPATH}" >> $GITHUB_ENV
echo "${BINPATH}" >> $GITHUB_PATH
- name: Download data
run: |
curl https://box.in2p3.fr/s/KFJ2pWDqNB85WNn/download --output ftransfer_ztf_2024-07-24_50931.tar.gz
tar -xvf ftransfer_ztf_2024-07-24_50931.tar.gz
- name: Run profiling on Fink-science
run: |
./profile_module.sh -name "Early SN Ia" -d ftransfer_ztf_2024-07-24_50931
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: profiling
path: *.lprof

0 comments on commit 6e0ab49

Please sign in to comment.