mirror of
https://github.com/DifferentiableUniverseInitiative/JaxPM.git
synced 2025-02-22 17:47:11 +00:00
adding caching of dependencies
This commit is contained in:
parent
d81a2529e7
commit
e316d8a0b2
2 changed files with 58 additions and 0 deletions
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
|
@ -25,6 +25,15 @@ jobs:
|
|||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get install -y libopenmpi-dev
|
||||
|
|
49
CONTRIBUTING.md
Normal file
49
CONTRIBUTING.md
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Contributing
|
||||
|
||||
We appreciate your interest in improving this project. Here are some guidelines:
|
||||
|
||||
1. Fork the repository and create a new branch.
|
||||
2. Follow existing code styles and conventions.
|
||||
3. Write clear commit messages.
|
||||
4. Test your changes thoroughly.
|
||||
5. Open a Pull Request with a concise summary.
|
||||
|
||||
## Setting Up the Development Environment
|
||||
|
||||
To set up the development environment, follow these steps:
|
||||
|
||||
1. **Clone the repository**:
|
||||
```sh
|
||||
git clone https://github.com/your-username/JaxPM.git
|
||||
cd JaxPM
|
||||
```
|
||||
|
||||
2. **Create a virtual environment**:
|
||||
```sh
|
||||
python -m venv --system-site-packages venv
|
||||
source venv/bin/activate # On Windows use `venv\Scripts\activate`
|
||||
```
|
||||
|
||||
3. **Install the dependencies**:
|
||||
```sh
|
||||
pip install -r requirements-test.txt
|
||||
pip install -e .
|
||||
```
|
||||
|
||||
4. **Install pre-commit hooks**:
|
||||
```sh
|
||||
pre-commit install
|
||||
```
|
||||
This will run code formatting and linting checks before each commit.
|
||||
|
||||
## Running Tests
|
||||
|
||||
To run the tests, use the following command:
|
||||
|
||||
```sh
|
||||
pytest
|
||||
```
|
||||
|
||||
Make sure all tests pass before submitting your changes.
|
||||
|
||||
Thank you for contributing!
|
Loading…
Add table
Reference in a new issue