Skip to content

Commit 307b246

Browse files
committed
refactor(radioactive-decay): overhaul project logic and UI.
1 parent 7ae50e8 commit 307b246

6 files changed

Lines changed: 273 additions & 4251 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Validate Nuclear DB
2+
3+
on:
4+
5+
# When I push on this path, this job has to be run.
6+
push:
7+
paths:
8+
- 'assets/apps/db/radioisotopes-min.json'
9+
10+
# Provide the option to run it manually if required.
11+
workflow_dispatch:
12+
13+
jobs:
14+
15+
validate:
16+
17+
# Execute this job on a Linux environment.
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
# 0. Initialize project sources.
22+
- uses: actions/checkout@v4
23+
24+
# 1. Install python v3.11.
25+
- name: Setup Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.11'
29+
30+
# 2. Run the script from secret URL.
31+
- name: Validate database
32+
env:
33+
GIST_SCRIPT_URL: ${{ secrets.GIST_SECRET_SCRIPT }}
34+
GIST_DB_URL: ${{ secrets.GIST_SECRET_DB_URL }}
35+
run: |
36+
curl -sL "$GIST_SCRIPT_URL" -o radioisotopes.py && \
37+
python3 radioisotopes.py \
38+
--input assets/apps/db/radioisotopes-min.json \
39+
--enhanced-db "$GIST_DB_URL" ; \
40+
rm -f radioisotopes.py
41+

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@ Ce travail a demandé un investissement conséquent.
4646

4747
Deux versions sont disponibles :
4848

49-
- une **version lisible** et facilement modifiable.
49+
- une **version lisible** et facilement modifiable [ici](https://gist.github.com/Nde-Code/0dc819d80ee1d593d7d27d138fc68292).
50+
51+
- Toutes les demandes de modifications, commentaires, avis, etc..., doivent être faites sur ce Gist.
5052

5153
- une **version optimisée et minimisée** pour un usage en ligne performant.
5254

55+
- Version très simplement minimisée via un outil, très peu pratique pour la maintenance.
56+
5357
> 🔓 Son utilisation est libre, mais une **mention de crédit** serait grandement appréciée.
5458
5559
## ⚖️ Licence:

0 commit comments

Comments
 (0)