DM-41032: Add per-dataset-type special transfer handling #24
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: test | |
on: | |
push: | |
branches: | |
# - main | |
- tickets/DM-41032 | |
tags: | |
- v* | |
pull_request: | |
env: | |
PROGRAM_NAME: transfer-embargo | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v3 | |
- name: Setup python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m ensurepip | |
python -m pip install lsst-daf-butler | |
- name: Run tests | |
run: | | |
cd ./tests | |
python test_move_embargo_args.py | |
# - name: docker build | |
# run: | | |
# docker build . \ | |
# --tag $PROGRAM_NAME | |
# - name: Log in to Github container registry | |
# run: echo "${{ secrets.GITHUB_TOKEN }}" |docker login ghcr.io -u $ --password-stdin | |
# - name: Push images | |
# run: | | |
# PROGRAM_ID=ghcr.io/${{ github.repository_owner }}/$PROGRAM_NAME | |
# if [[ "${{ github.ref }}" == "refs/pull/"* ]]; then | |
# VERSION=$(echo "${{ github.head_ref }}" | sed -e 's|.*/||') | |
# elif [[ "${{ github.ref }}" == "refs/tags/"* ]]; then | |
# VERSION=$(echo "${{ github.ref_name }}" | sed -e 's|^v||') | |
# else | |
# VERSION=latest | |
# fi | |
# echo VERSION=$VERSION | |
# echo PROGRAM_ID=$PROGRAM_ID | |
# docker tag $PROGRAM_NAME $PROGRAM_ID:$VERSION | |
# docker push $PROGRAM_ID:$VERSION |