-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (68 loc) · 1.66 KB
/
build.yml
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
name: "build"
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC
jobs:
build:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./COOL
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '14'
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Init
run: |
chmod +x *.sh
./init.sh
cd src/main/python
source venv/bin/activate
python -m unittest discover
- name: Test Kotlin
run: |
./download.sh
./start.sh
./gradlew --stacktrace --scan
./stop.sh
- name: Generate the charts
run: |
cd src/main/python
pip install -r requirements.txt
pip install jupyter
jupyter nbconvert --execute --to notebook --inplace charts.ipynb
release:
needs:
- build
if: github.event_name == 'push'
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install Node
uses: actions/[email protected]
with:
node-version-file: package.json
- uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '14'
- name: Deploy
run: |
cd COOL
chmod +x ./gradlew
./gradlew shadowJar
- name: Release
run: |
npm install
npx semantic-release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}