You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-2
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,26 @@ This repository contains a template for creating your own [Python file reader](h
7
7
## Getting Started
8
8
9
9
1. Click the "Use this template" button to create your own repository based on this template.
10
-
2. Rename `src/FileReaderName` to reflect the name of your modifier.
10
+
2. Rename `src/FileReaderName` to reflect the name of your file reader.
11
11
3. Implement your [file reader](https://ovito.org/docs/dev/python/introduction/custom_file_readers.html) in [`src/FileReaderName/__init__.py`](src/FileReaderName/__init__.py). Fill in the predefined functions as needed. More details on this interface can be found in the [OVITO Python docs](https://ovito.org/docs/dev/python/modules/ovito_io.html#ovito.io.FileReaderInterface).
12
12
4. Fill in the [`pyproject.toml`](pyproject.toml) file. Fields that need to be replaced with your information are enclosed in descriptive `[[field]]` tags. Please make sure to include ovito>=3.9.1 as a dependency. Depending on your needs, you can add additional fields to the `pyproject.toml` file. Information can be found [here](https://setuptools.pypa.io/en/latest/userguide/index.html).
13
13
5. Fill in the [`README_Template.md`](README_Template.md) file. Again, the `[[fields]]` placeholders should guide you. Feel free to add other sections like "Images", "Citation", or "References" as needed.
14
-
6. Add meaningful examples and data sample files to the `Examples` directory to help others understand the use of your modifier.
14
+
6. Add meaningful examples and data sample files to the `Examples` directory to help others understand the use of your file reader.
15
15
7. Pick a license for your project and replace the current (MIT) [`LICENSE`](LICENSE) file with your license. If you keep the MIT license, please update the name and year in the current file.
16
16
8. Once you're done, rename `README_Template.md` to `README.md`, replacing this file.
17
+
18
+
## Testing
19
+
This repository is configured to enable automated testing using the [pytest](https://docs.pytest.org/en/7.4.x/) framework. Tests are automatically executed after each push to the main branch. To set up and activate automated testing, follow these two steps:
20
+
21
+
1. Write your tests in the `test/test_file_reader.py` file. You can also use other filenames that adhere to the pytest requirements.
22
+
2. Open the `.github/workflows/python-tests.yml` file and remove the `if: ${{ false }}` condition on line 15.
23
+
24
+
If needed, you can also adjust the operating system and Python versions by modifying the following lines:
An example can be found [here](https://github.com/nnn911/GenerateRandomSolution).
31
+
32
+
As of August 16, 2023, according to the [GitHub documentation](https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions), *"GitHub Actions usage is free for standard GitHub-hosted runners in public repositories, and for self-hosted runners."* Please refer to the GitHub documentation if you are uncertain about incurring costs.
0 commit comments