Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
nexent/.github/workflows/auto-unit-test.yml at develop · ModelEngine-Group/nexent · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
ModelEngine-Group
nexent
Repository navigation
Code
Issues
187
(187)
Pull requests
97
(97)
Discussions
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
develop
Breadcrumbs
nexent
/
.github
/
workflows
/
auto-unit-test.yml
Copy path
View runs
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
117 lines (105 loc) · 3.47 KB
develop
Breadcrumbs
nexent
/
.github
/
workflows
/
auto-unit-test.yml
Copy path
Top
File metadata and controls
Code
Blame
117 lines (105 loc) · 3.47 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
name
:
Run Automated Unit Tests
permissions
:
contents
:
read
concurrency
:
group
:
automated-unit-test-${{ github.ref }}
cancel-in-progress
:
true
on
:
workflow_dispatch
:
inputs
:
runner_label_json
:
description
:
'
JSON runner labels; blank uses self-hosted, or use ["ubuntu-24.04"] for GitHub-hosted
'
required
:
false
default
:
'
'
pytest_workers
:
description
:
'
parallel test workers (auto=CPU count, 0=serial, N=fixed count)
'
required
:
false
default
:
'
auto
'
pytest_file_timeout
:
description
:
'
per-file timeout in seconds (0=disabled)
'
required
:
false
default
:
'
300
'
codecov_os
:
description
:
'
Optional Codecov OS override; blank detects the executing runner architecture
'
required
:
false
default
:
'
'
pull_request
:
branches
:
[develop, 'release/**', 'hotfix/**']
paths
:
-
'
backend/**
'
-
'
sdk/**
'
-
'
deploy/common/**
'
-
'
deploy/tests/**
'
-
'
deploy/offline/**
'
-
'
deploy/docker/**
'
-
'
deploy/k8s/**
'
-
'
test/**
'
-
'
.github/workflows/**
'
push
:
branches
:
[develop, 'release/**', 'hotfix/**']
paths
:
-
'
backend/**
'
-
'
sdk/**
'
-
'
deploy/common/**
'
-
'
deploy/tests/**
'
-
'
deploy/offline/**
'
-
'
deploy/docker/**
'
-
'
deploy/k8s/**
'
-
'
test/**
'
-
'
.github/workflows/**
'
jobs
:
test
:
runs-on
:
${{ fromJson(inputs.runner_label_json || '["self-hosted", "linux", "x64"]') }}
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v4
-
name
:
Run deployment script tests
run
:
|
bash deploy/tests/test_common.sh
bash deploy/tests/test_docker_backup.sh
bash deploy/tests/test_k8s_backup.sh
bash deploy/tests/test_sql_migrations.sh
bash deploy/tests/test_super_admin_init.sh
bash deploy/tests/test_build_offline_package.sh
-
name
:
Set up Python
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.11
'
-
name
:
Install uv
run
:
pip install --upgrade uv
-
name
:
Install dependencies
run
:
|
cd backend
uv sync --extra data-process --extra test
uv pip install -e "../sdk[dev]"
cd ..
-
name
:
Run all tests and collect coverage
env
:
NEXENT_PYTEST_WORKERS
:
${{ github.event.inputs.pytest_workers || 'auto' }}
NEXENT_PYTEST_FILE_TIMEOUT
:
${{ github.event.inputs.pytest_file_timeout || '300' }}
run
:
|
source backend/.venv/bin/activate && python test/run_all_test.py
TEST_EXIT_CODE=$?
if [ -f "test/coverage.xml" ]; then
echo "Coverage XML file generated successfully."
else
echo "Coverage XML file not found."
exit 1
fi
if [ $TEST_EXIT_CODE -ne 0 ]; then
echo "Tests failed with exit code $TEST_EXIT_CODE"
exit $TEST_EXIT_CODE
else
echo "All tests passed successfully."
fi
-
name
:
Upload coverage to Codecov
#
codecov/codecov-action@v7
uses
:
codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f
with
:
files
:
test/coverage.xml
token
:
${{ secrets.CODECOV_TOKEN }}
flags
:
unittests
name
:
codecov-umbrella
fail_ci_if_error
:
true
os
:
${{ inputs.codecov_os || (runner.arch == 'ARM64' && 'linux-arm64' || 'linux') }}
verbose
:
true
You can’t perform that action at this time.