python-ci
Includes functions for building and testing a Node app.Installation
dagger install github.com/d3rp3tt3/daggerverse/python-ci@e52f0231c81d5b785253eefd614cee98554933bfEntrypoint
Return Type
PythonCi ! Example
dagger -m github.com/d3rp3tt3/daggerverse/python-ci@e52f0231c81d5b785253eefd614cee98554933bf call \
func (m *MyModule) Example() *dagger.PythonCi {
return dag.
PythonCi()
}@function
def example() -> dagger.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_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.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_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.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_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.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_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.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)
}