-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 966 Bytes
/
run_program.yml
File metadata and controls
49 lines (42 loc) · 966 Bytes
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
name: Run Program
on:
workflow_dispatch:
push:
paths:
- src/program/**
- pyproject.toml
pull_request:
paths:
- src/program/**
- pyproject.toml
jobs:
run:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: 3.13
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv sync
- name: Build and Install Program
run: |
uv pip install -e .
- name: Run Program
run: |
uv run src/program/main.py
- name: Upload Logs
if: always()
uses: actions/upload-artifact@v7
with:
name: logs
path: logs/
archive: true
retention-days: 90
if-no-files-found: ignore