Contributing¶
You are welcome to contribute to ramp-workflow, particularly if there are Prediction types, workflows or score metrics that you have written for your challenge which you think may be useful for other challenges.
To contribute:
- Fork the ramp-workflow repository. 
- Clone the ramp-workflow repository then - cdinto it:- $ git clone https://github.com/paris-saclay-cds/ramp-workflow.git $ cd ramp-workflow 
- Install requirements: - $ pip install -r requirements.txt 
Alternatively you may wish to install the required packages in a specific environment for ramp-workflow.
- Install ramp-worflow in editable mode: - pip install --editable . 
- Add your contributions and submit a pull request to merge this into ramp-workflow. 
Code style¶
This repo uses flake8 for code style. It can be run on commits automatically
by installing and activating pre-commit:
pip install pre-commit
pre-commit install
Testing ramp-board¶
Since ramp-board depends on ramp-workflow, any time that there is a PR in ramp-workflow, ramp-board should also be tested using the following sequence:
Under ramp-board GitHub Actions in the
mainworkflow select “Run Workflow” and in the dropdown menu paste the a pip installable URL to the version of ramp-workflow from your PR. For instance it would look as follows,:https://github.com/<your fork>/ramp-workflow/archive/refs/heads/<your branch>.zip
If the tests are green, the PR’d branch of ramp-workflow can be accepted.
If it is not, ramp-board should be fixed:
Start a new branch in ramp-board, preferably of the same name as the PR’d branch of ramp-workflow, on top of rampwf_test.
Fix the error on the new branch, make sure that the tests are green when pulling from ramp-workflow from the PR’d branch in environment.yml and environment_iris_kit.yml.
Accept the PR’d branch on ramp-workflow and update pypi.
Modify environment.yml and environment_iris_kit.yml to pip install ramp-workflow from pypi and check again that the test are green.
Accept the PR on ramp-board.
Release process¶
The following explain the main steps to release ramp-board:
- Run - bumpversion release. It will remove the- dev0tag.
- Commit the change - git commit -am "bumpversion 0.1.0".
- Create a branch for this version - git checkout -b 0.1.X.
- Push the new branch into the upstream repository. 
- You can create a GitHub release. 
- Change the symlink in the - ramp-docsrepository such that stable point on 0.1.X.
- Push on PyPI by executing the following: - pip install build && python -m build . && twine upload dist/*.
- In - master, run- bumpversion minor, commit and push on upstream.