Skip to content

Commit a533b99

Browse files
committed
Update workflows - miniforge conda and py3.12
1 parent dfe497e commit a533b99

6 files changed

+182
-19
lines changed

.github/workflows/build_docs.yaml

+4-6
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,16 @@ jobs:
1818
- uses: conda-incubator/setup-miniconda@v3
1919
with:
2020
auto-update-conda: true
21-
python-version: "3.11"
22-
miniforge-variant: Miniforge3
21+
python-version: "3.12"
22+
miniforge-version: latest
2323
channels: conda-forge,defaults
24-
use-mamba: true
25-
channel-priority: strict
2624
show-channel-urls: true
2725

2826
- name: configure conda and install requirements
2927
shell: bash -l {0}
3028
run: |
31-
mamba install --quiet pip
32-
mamba install --quiet --file=requirements.txt
29+
conda install --yes pip
30+
conda install --yes --file=requirements.txt
3331
pip install "documenteer[guide]"
3432
3533
- name: install rubin_sim

.github/workflows/cache.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@ jobs:
1515
- uses: conda-incubator/setup-miniconda@v3
1616
with:
1717
auto-update-conda: true
18-
python-version: ${{ matrix.python-version }}
19-
miniforge-variant: Miniforge3
18+
python-version: "3.12"
19+
miniforge-version: latest
2020
channels: conda-forge,defaults
21-
use-mamba: true
22-
channel-priority: strict
2321
show-channel-urls: true
2422

2523
- name: Configure conda and install minimal requirements for cache
2624
shell: bash -l {0}
2725
run: |
28-
mamba install --quiet rubin-scheduler -c conda-forge
26+
conda install --yes rubin-scheduler
2927
3028
- name: Install rubin_sim from git
3129
shell: bash -l {0}

.github/workflows/ruff.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
24-
- uses: chartboost/ruff-action@v1
24+
- uses: astral-sh/ruff-action@v3

.github/workflows/test_and_build.yaml

+5-7
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@ jobs:
2828
with:
2929
auto-update-conda: true
3030
python-version: ${{ matrix.python-version }}
31-
miniforge-variant: Miniforge3
32-
channels: conda-forge
33-
use-mamba: true
34-
channel-priority: strict
31+
miniforge-version: latest
32+
channels: conda-forge,defaults
3533
show-channel-urls: true
3634

3735
- name: configure conda and install requirements
3836
shell: bash -l {0}
3937
run: |
40-
mamba install --quiet --file=requirements.txt
41-
mamba install --quiet --file=test-requirements.txt
38+
conda install --yes --file=requirements.txt
39+
conda install --yes --file=test-requirements.txt
4240
4341
- name: install rubin_sim
4442
shell: bash -l {0}
@@ -99,7 +97,7 @@ jobs:
9997
- name: Set up Python
10098
uses: actions/setup-python@v5
10199
with:
102-
python-version: 3.11
100+
python-version: "3.12"
103101
cache: "pip"
104102

105103
- name: Install dependencies for build

example_deployment.yaml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
name: maf
6+
7+
---
8+
apiVersion: apps/v1
9+
kind: Deployment
10+
metadata:
11+
namespace: maf
12+
name: maf-server
13+
labels:
14+
app: maf-server
15+
spec:
16+
replicas: 1
17+
selector:
18+
matchLabels: app maf-server
19+
template:
20+
metadata:
21+
labels:
22+
app: maf-server
23+
spec:
24+
containers:
25+
- name: maf
26+
image: "ghcr.io/....:tag"
27+
imagePullPolicy: Always
28+
resources:
29+
limits:
30+
cpu: 1
31+
memory: "2Gi"
32+
requests:
33+
cpu: 500m
34+
memory: "1Gi"
35+
volumeMounts:
36+
- mountPath: /sdf/data/rubin
37+
name: sdf-data-rubin
38+
volumes:
39+
- name: sdf-data-rubin
40+
persistentVolumeClaim:
41+
claimName: sdf-data-rubin
42+
---
43+
apiVersion: v1
44+
kind: PersistentVolumeClaim
45+
metadata:
46+
namespace: maf
47+
name: sdf-data-rubin
48+
spec:
49+
storageClassName: sdf-data-rubin
50+
accessModes:
51+
- ReadOnlyMany
52+
resources:
53+
requests:
54+
storage: 1Gi
55+
---
56+
apiVersion: v1
57+
kind: Service
58+
metadata:
59+
namespace: maf
60+
name: usdf-maf
61+
labels:
62+
app: maf-server
63+
annotations:
64+
metallb.universe.tf/address-pool: sdf-services
65+
spec:
66+
type: LoadBalancer
67+
ports:
68+
- name: http
69+
port: 80
70+
protocol: TCP
71+
targetPort: 80
72+
selector:
73+
app: maf-server

showmaf-deploy.yaml

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
---
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
name: maf
6+
7+
---
8+
apiVersion: apps/v1
9+
kind: Deployment
10+
metadata:
11+
namespace: maf
12+
name: maf-server
13+
labels:
14+
app: maf-server
15+
spec:
16+
replicas: 1
17+
selector:
18+
matchLabels:
19+
app: maf-server
20+
template:
21+
metadata:
22+
labels:
23+
app: maf-server
24+
spec:
25+
containers:
26+
- name: maf
27+
image: "ghcr.io/lsst/rubin_sim:main"
28+
imagePullPolicy: Always
29+
resources:
30+
limits:
31+
cpu: 1
32+
memory: "10Gi"
33+
requests:
34+
cpu: 500m
35+
memory: "8Gi"
36+
volumeMounts:
37+
- mountPath: /data/fbs_sims
38+
name: sdf-data-rubin
39+
subPath: shared/fbs_sims
40+
volumes:
41+
- name: sdf-data-rubin
42+
persistentVolumeClaim:
43+
claimName: sdf-data-rubin
44+
---
45+
apiVersion: v1
46+
kind: PersistentVolumeClaim
47+
metadata:
48+
namespace: maf
49+
name: sdf-data-rubin
50+
spec:
51+
storageClassName: sdf-data-rubin
52+
accessModes:
53+
- ReadOnlyMany
54+
resources:
55+
requests:
56+
storage: 8Gi
57+
---
58+
apiVersion: v1
59+
kind: Service
60+
metadata:
61+
namespace: maf
62+
name: usdf-maf
63+
labels:
64+
app: maf-server
65+
annotations:
66+
metallb.universe.tf/address-pool: sdf-services
67+
spec:
68+
type: LoadBalancer
69+
ports:
70+
- name: http
71+
port: 80
72+
protocol: TCP
73+
targetPort: 8080
74+
selector:
75+
app: maf-server
76+
---
77+
apiVersion: networking.k8s.io/v1
78+
kind: Ingress
79+
metadata:
80+
name: maf-ingress
81+
namespace: maf
82+
labels:
83+
app: maf-server
84+
spec:
85+
ingressClassName: nginx
86+
rules:
87+
- host: usdf-maf.slac.stanford.edu
88+
http:
89+
paths:
90+
- backend:
91+
service:
92+
name: usdf-maf
93+
port:
94+
number: 80
95+
path: /
96+
pathType: Prefix

0 commit comments

Comments
 (0)