Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
tilelang
Commits
be55163f
Commit
be55163f
authored
Jan 11, 2025
by
Lei Wang
Committed by
GitHub
Jan 11, 2025
Browse files
[Dev] Add Format and Test CI (#12)
* README.md fixed * update test ci
parent
95273623
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
0 deletions
+70
-0
.github/workflows/ci.yml
.github/workflows/ci.yml
+70
-0
No files found.
.github/workflows/ci.yml
0 → 100644
View file @
be55163f
name
:
CI
on
:
[
pull_request
]
jobs
:
format-check
:
runs-on
:
self-hosted
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v2
with
:
fetch-depth
:
0
-
name
:
Set up Python
uses
:
actions/setup-python@v2
with
:
python-version
:
'
3.9'
-
name
:
Create virtual environment
run
:
python -m venv bitblas_ci
-
name
:
Activate virtual environment and install dependencies
run
:
|
source bitblas_ci/bin/activate
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then python -m pip install -r requirements-dev.txt; fi
-
name
:
Update submodules recursively
run
:
git submodule update --init --recursive
-
name
:
Run format check
run
:
|
source bitblas_ci/bin/activate
./format.sh
build-test
:
runs-on
:
self-hosted
needs
:
format-check
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v2
with
:
fetch-depth
:
0
-
name
:
Set up Python
uses
:
actions/setup-python@v2
with
:
python-version
:
'
3.9'
-
name
:
Create virtual environment
run
:
python -m venv bitblas_ci
-
name
:
Activate virtual environment and install dependencies
run
:
|
source bitblas_ci/bin/activate
python -m pip install --upgrade pip
if [ -f requirements-test.txt ]; then python -m pip install -r requirements-test.txt; fi
-
name
:
Install project in wheel mode
run
:
|
source bitblas_ci/bin/activate
python -m pip install .
-
name
:
Run tests
run
:
|
source bitblas_ci/bin/activate
cd testing/python
python -m pytest
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment