Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bitia-cli
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bitia
bitia-cli
Commits
f7315585
Commit
f7315585
authored
2 years ago
by
dilawar
Browse files
Options
Downloads
Patches
Plain Diff
chore: fixes to
#3
parent
ea4dbcf1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#3623
failed with stages
Stage:
Stage:
Stage:
in 11 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bitia/__main__.py
+1
-1
1 addition, 1 deletion
bitia/__main__.py
bitia/__pycache__/__main__.cpython-310.pyc
+0
-0
0 additions, 0 deletions
bitia/__pycache__/__main__.cpython-310.pyc
tests/test_cli.sh
+3
-0
3 additions, 0 deletions
tests/test_cli.sh
tests/test_sanity.py
+6
-0
6 additions, 0 deletions
tests/test_sanity.py
with
10 additions
and
1 deletion
bitia/__main__.py
+
1
−
1
View file @
f7315585
...
...
@@ -124,7 +124,7 @@ def submit_job(pipeline_zip: Path, server: str):
)
files
=
{
"
pipeline_zip
"
:
open
(
str
(
pipeline_zip
),
"
rb
"
)}
r
=
session
.
post
(
f
"
{
server
}
/submit
"
,
files
=
files
,
data
=
dict
(
filename
=
pipeline_zip
),
stream
=
True
f
"
{
server
}
/
api/v1/
submit
"
,
files
=
files
,
data
=
dict
(
filename
=
pipeline_zip
),
stream
=
True
)
for
line
in
r
.
iter_lines
():
print
(
line
.
decode
())
...
...
This diff is collapsed.
Click to expand it.
bitia/__pycache__/__main__.cpython-310.pyc
+
0
−
0
View file @
f7315585
No preview for this file type
This diff is collapsed.
Click to expand it.
tests/test_cli.sh
0 → 100644
+
3
−
0
View file @
f7315585
#!/bin/bash
set
-e
poetry run bitia run
"ls -ltrh /"
This diff is collapsed.
Click to expand it.
tests/test_sanity.py
+
6
−
0
View file @
f7315585
import
bitia
import
bitia.__main__
import
sys
import
subprocess
def
test_sanity
():
assert
bitia
.
version
()
def
test_run_simple
():
bitia
.
__main__
.
run_pipeline
(
"
ls -ltr /
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment