python-ci
Includes functions for building and testing a Node app.Installation
dagger install github.com/d3rp3tt3/daggerverse/python-ci@e52f0231c81d5b785253eefd614cee98554933bf
Entrypoint
Return Type
PythonCi !
Example
dagger -m github.com/d3rp3tt3/daggerverse/python-ci@e52f0231c81d5b785253eefd614cee98554933bf call \
func (m *myModule) example() *PythonCi {
return dag.
PythonCi()
}
@function
def example() -> dag.PythonCi:
return (
dag.python_ci()
)
@func()
example(): PythonCi {
return dag
.pythonCi()
}
Types
PythonCi 🔗
serve() 🔗
Create a service from the production image
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | A directory. |
Example
dagger -m github.com/d3rp3tt3/daggerverse/python-ci@e52f0231c81d5b785253eefd614cee98554933bf call \
serve --source DIR_PATH
func (m *myModule) example(source *Directory) *Service {
return dag.
PythonCi().
Serve(source)
}
@function
def example(source: dagger.Directory) -> dagger.Service:
return (
dag.python_ci()
.serve(source)
)
@func()
example(source: Directory): Service {
return dag
.pythonCi()
.serve(source)
}
publish() 🔗
Publish an image
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | A directory. |
Example
dagger -m github.com/d3rp3tt3/daggerverse/python-ci@e52f0231c81d5b785253eefd614cee98554933bf call \
publish --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
PythonCi().
Publish(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
return await (
dag.python_ci()
.publish(source)
)
@func()
async example(source: Directory): Promise<string> {
return dag
.pythonCi()
.publish(source)
}
build() 🔗
Create a production build
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | A directory. |
Example
dagger -m github.com/d3rp3tt3/daggerverse/python-ci@e52f0231c81d5b785253eefd614cee98554933bf call \
build --source DIR_PATH
func (m *myModule) example(source *Directory) *Directory {
return dag.
PythonCi().
Build(source)
}
@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.python_ci()
.build(source)
)
@func()
example(source: Directory): Directory {
return dag
.pythonCi()
.build(source)
}
test() 🔗
Run unit tests
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | A directory. |
Example
dagger -m github.com/d3rp3tt3/daggerverse/python-ci@e52f0231c81d5b785253eefd614cee98554933bf call \
test --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
PythonCi().
Test(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
return await (
dag.python_ci()
.test(source)
)
@func()
async example(source: Directory): Promise<string> {
return dag
.pythonCi()
.test(source)
}