-
Notifications
You must be signed in to change notification settings - Fork 0
242 lines (202 loc) · 9.05 KB
/
release.yml
File metadata and controls
242 lines (202 loc) · 9.05 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
env:
APP_NAME: AstroLens
PYTHON_VERSION: "3.11"
jobs:
# ─────────────────────────────────────────────────
# Run tests before building
# ─────────────────────────────────────────────────
test:
runs-on: ubuntu-latest
env:
ASTROLENS_ARTIFACTS_DIR: ${{ github.workspace }}/astrolens_artifacts
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
python -m pytest tests/test_morphology.py -v --tb=short
python tests/test_ui_components.py
python tests/test_all_features.py --section ood
python tests/test_all_features.py --section morphology
python tests/test_all_features.py --section reconstruction
# ─────────────────────────────────────────────────
# Build for macOS (Apple Silicon + Intel)
# ─────────────────────────────────────────────────
build-macos:
needs: test
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller matplotlib
- name: Build macOS app
run: python build/build.py
- name: Get version
id: version
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Package macOS app
run: |
cd build/dist/macos
zip -r ../../../${{ env.APP_NAME }}-${{ steps.version.outputs.tag }}-macos-arm64.zip ${{ env.APP_NAME }}.app || \
zip -r ../../../${{ env.APP_NAME }}-${{ steps.version.outputs.tag }}-macos-arm64.zip ${{ env.APP_NAME }}/
- name: Upload macOS artifact
uses: actions/upload-artifact@v4
with:
name: macos-build
path: ${{ env.APP_NAME }}-*.zip
# ─────────────────────────────────────────────────
# Linux: use Docker image (PyInstaller bundle exceeds GitHub's 2GB asset limit)
# ─────────────────────────────────────────────────
# ─────────────────────────────────────────────────
# Build for Windows
# ─────────────────────────────────────────────────
build-windows:
needs: test
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller matplotlib
- name: Build Windows exe
run: python build/build.py
- name: Get version
id: version
shell: bash
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Package Windows build
shell: bash
run: |
cd build/dist/windows
7z a ../../../${{ env.APP_NAME }}-${{ steps.version.outputs.tag }}-windows-x64.zip ${{ env.APP_NAME }}/
- name: Upload Windows artifact
uses: actions/upload-artifact@v4
with:
name: windows-build
path: ${{ env.APP_NAME }}-*.zip
# ─────────────────────────────────────────────────
# Build and push Docker image
# ─────────────────────────────────────────────────
build-docker:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Get version
id: version
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64
tags: |
ghcr.io/${{ github.repository_owner }}/astrolens:latest
ghcr.io/${{ github.repository_owner }}/astrolens:${{ steps.version.outputs.tag }}
cache-from: type=gha
cache-to: type=gha,mode=max
# ─────────────────────────────────────────────────
# Create GitHub Release with all platform builds
# ─────────────────────────────────────────────────
release:
needs: [build-macos, build-windows, build-docker]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Get version
id: version
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Download macOS build
uses: actions/download-artifact@v4
with:
name: macos-build
path: release-assets/
- name: Download Windows build
uses: actions/download-artifact@v4
with:
name: windows-build
path: release-assets/
- name: List release assets
run: find release-assets/ -type f -name '*.zip' -o -name '*.tar.gz'
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.tag }}
name: "${{ env.APP_NAME }} ${{ steps.version.outputs.tag }}"
body: |
## AstroLens ${{ steps.version.outputs.tag }}
AI-Powered Astronomical Anomaly Detection -- autonomous sky survey analysis with self-correcting intelligence.
### What's New in v1.1.0
- **Streaming Discovery**: Fully autonomous multi-day pipeline that downloads, analyzes, and reports anomaly candidates 24/7
- **Self-Correcting Intelligence**: Auto-adjusts thresholds, rebalances sources, recalibrates detection in real time
- **YOLO v1.1 Model**: Fine-tuned transient detector achieving 99.5% mAP50 (up from 51.5%)
- **Daily HTML Reports**: Automated charts, rankings, and trend analysis
- **Web Streaming Dashboard**: Live monitoring with Chart.js visualizations
- **Desktop Streaming Panel**: Start, stop, and monitor from the native UI
Validated in autonomous operation: 22,195 images analyzed across 5,471 sky regions, 3,541 anomaly candidates, 269 known objects independently recovered and confirmed against SIMBAD/NED (including SN 2014J, NGC 3690, SDSS J0252+0039).
### Downloads
| Platform | File |
|----------|------|
| macOS (Apple Silicon) | `${{ env.APP_NAME }}-${{ steps.version.outputs.tag }}-macos-arm64.zip` |
| Windows (x64) | `${{ env.APP_NAME }}-${{ steps.version.outputs.tag }}-windows-x64.zip` |
| Linux / All platforms | Docker (see below) |
### Docker
```bash
docker pull ghcr.io/${{ github.repository_owner }}/astrolens:${{ steps.version.outputs.tag }}
docker run -p 8000:8000 -p 8080:8080 ghcr.io/${{ github.repository_owner }}/astrolens:${{ steps.version.outputs.tag }}
```
### Requirements
- Python 3.10+ (or Docker)
- 8GB+ RAM recommended
- GPU optional (CUDA / Apple MPS auto-detected)
Full documentation: [Website](https://deepfieldlabs.github.io) | [README](https://github.com/samantaba/astroLens) | [Wiki](https://github.com/samantaba/astroLens/wiki)
files: |
release-assets/*.zip
draft: false
prerelease: false