-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (74 loc) · 2.48 KB
/
Copy pathci.yml
File metadata and controls
79 lines (74 loc) · 2.48 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
# GitHub Actions workflow for building and testing Delve on push events
# This workflow runs on both Windows and Ubuntu runners
# It builds the project, runs the test suite, and provides basic notifications
name: Build and Test Delve
on:
push:
branches:
- '**'
jobs:
build-and-test-windows:
name: Build and Test on Windows
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24.4.1' # or your required version
- name: Check npm location
run: where npm
shell: cmd
- name: Print PATH
run: echo %PATH%
shell: cmd
- name: Run bootstrap script
run: python bootstrap.py all
shell: cmd
- name: Prepare settings and urls
run: |
copy build\assemble\delve\example-settings.py build\assemble\delve\settings.py
copy build\assemble\delve\example-urls.py build\assemble\delve\urls.py
- name: Run test suite
shell: cmd
run: |
cd build\assemble
python manage.py test
build-and-test-linux:
name: Build and Test on Ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install MariaDB Connector/C
run: sudo apt-get update && sudo apt-get install -y libmariadb-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run bootstrap script
run: python bootstrap.py all
- name: Prepare settings and urls
run: |
cp build/assemble/delve/example-settings.py build/assemble/delve/settings.py
cp build/assemble/delve/example-urls.py build/assemble/delve/urls.py
- name: Run test suite
run: |
cd build/assemble
python manage.py test
# Notifications:
# - GitHub will show pass/fail in the UI and send email to repository watchers if enabled.
# - For custom notifications, add steps using actions for Slack, Discord, etc.