Skip to content
/ rye-plugin Public template

Set up your CI/CD Pipeline with a specific version of rye

License

Notifications You must be signed in to change notification settings

fluentci-io/rye-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rye Plugin

fluentci pipeline ci

This plugin sets up your CI/CD pipeline with a specific version of rye.

🚀 Usage

Add the following command to your CI configuration file:

fluentci run --wasm rye setup

Functions

Name Description
setup Installs a specific version of rye.
fmt Run the code formatter on the project
build Builds a package for distribution
fetch Fetches a Python interpreter for the local machine
init Initialize a new or existing Python project with Rye
install Installs a package as global tool
lint Run the linter on the project
publish Publish packages to a package repository
run Runs a command installed into this package
toolchain Helper utility to manage Python toolchains
tools Helper utility to manage global tools

Code Usage

Add fluentci-pdk crate to your Cargo.toml:

[dependencies]
fluentci-pdk = "0.1.9"

Use the following code to call the plugin:

use fluentci_pdk::dag;

// ...

dag().call("https://pkg.fluentci.io/rye@v0.1.1?wasm=1", "setup", vec![])?;

📚 Examples

Github Actions:

- name: Setup Fluent CI CLI
  uses: fluentci-io/setup-fluentci@v5
  with:
    wasm: true
    plugin: rye
    args: |
      setup
- name: Show rye version
  run: |
    type rye
    rye --version