This project uses GitHub Actions to auto-generate and deploy documentation to GitHub Pages. To enable this workflow, ensure the following secret is configured in your repository:
GITHUB_TOKEN: This is automatically provided by GitHub for workflows. No additional setup is required unless you are using a custom token.
Known Issues
It seems to generate slightly different results based on the OS version and/or Python version.
Acknowledgements
This project is based on the original work by Honglun Yuan, Yiding Jiangfang, Zhenhua Liu, Rong Rong Su, Qiao Li, Chuanying Fang, Sishu Huang, Xianqing Liu, Alisdair Robert Fernie, and Jie Luo, as published in WTV_2.0 and their associated publication.
wtv
An implementation of ion selection based on WTV-2.0
Project setup:
1: Clone the code from wtv
2: Create an empty miniconda environment miniconda
3: Manage dependencies with poetry
Running tests:
Using
unittest:To run all tests using
unittest, use the following command:Using
pytest:Ensure
pytestis installed:Run tests with
pytest:Debug test failures: Run
pytestwith verbose output:Generate a test coverage report: Install
pytest-cov:Run tests with coverage:
Testing Documentation Locally
To test the documentation locally, follow these steps:
Install MkDocs: Ensure MkDocs and its dependencies are installed. run:
Serve the Documentation: Use the following command to serve the documentation locally:
Access the Documentation: Open your browser and navigate to
http://127.0.0.1:8000to view the documentation.Running GitHub Actions Locally with
actTo run all GitHub Actions workflows locally using
act, follow these steps:Install act: Download and install
actfrom its GitHub repository.Set Up Secrets: Create a
.secretsfile in the root of your repository and define the required secrets. For example:Run All Workflows: Use the following command to run all workflows:
Run a Specific Workflow: To run a specific workflow, use the
-Wflag followed by the path to the workflow file:Specify an Event: If you want to simulate a specific event (e.g.,
push,pull_request, orrelease), use the-eflag:Use a Specific Runner: By default,
actuses a lightweight Docker image. To use a full-featured image (e.g.,ubuntu-latest), specify it:Example
actCommandsRun all workflows:
Run the
package.yamlworkflow:Run the
publish.ymlworkflow:Simulate a
releaseevent:Documentation Deployment
This project uses GitHub Actions to auto-generate and deploy documentation to GitHub Pages. To enable this workflow, ensure the following secret is configured in your repository:
GITHUB_TOKEN: This is automatically provided by GitHub for workflows. No additional setup is required unless you are using a custom token.Known Issues
Acknowledgements
This project is based on the original work by Honglun Yuan, Yiding Jiangfang, Zhenhua Liu, Rong Rong Su, Qiao Li, Chuanying Fang, Sishu Huang, Xianqing Liu, Alisdair Robert Fernie, and Jie Luo, as published in WTV_2.0 and their associated publication.