-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (71 loc) · 2.12 KB
/
build_and_test.yaml
File metadata and controls
83 lines (71 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Test and build transfer containers
on:
push:
branches:
- main
tags:
- v*
pull_request:
env:
EUPS_DISTRIB_VERSION: "w_2025_41"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/eups/
key: ${{ runner.os }}-eups-${{ env.EUPS_DISTRIB_VERSION }}-${{ hashFiles('**/*.txt') }}
restore-keys: ${{ runner.os }}-eups-
- name: Install dependencies for testing
run: |
curl -OL https://ls.st/lsstinstall
chmod u+x lsstinstall
./lsstinstall -T ${{ env.EUPS_DISTRIB_VERSION }}
source loadLSST.sh
eups distrib install -t ${{ env.EUPS_DISTRIB_VERSION }} obs_lsst
curl -sSL https://raw.githubusercontent.com/lsst/shebangtron/main/shebangtron | python
- name: Run tests
run: |
source loadLSST.sh
setup obs_lsst
pytest tests
build_non_raw:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Build non-raw
uses: lsst-sqre/build-and-push-to-ghcr@v1
with:
image: lsst-dm/transfer-non-raw
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: Dockerfile.non_raw
build_from_list:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Build from-list
uses: lsst-sqre/build-and-push-to-ghcr@v1
with:
image: lsst-dm/transfer-from-list
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: Dockerfile.from_list
build_raw:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Build raw
uses: lsst-sqre/build-and-push-to-ghcr@v1
with:
image: lsst-dm/transfer-raw
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: Dockerfile.raw