Skip to content

Commit

Permalink
Add [test] and update CONTRIBUTING (#848)
Browse files Browse the repository at this point in the history
* Add [test] and update CONTRIBUTING

* pr comments
  • Loading branch information
dlwh authored Sep 13, 2024
1 parent 97ac55a commit 5a40d2e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
test-script: |
cp -r ${{ github.workspace }}/tests ./tests
cp ${{ github.workspace }}/pyproject.toml ./pyproject.toml
python -m pip install -r ./tests/requirements.txt
python -m pip install -e ".[tests]"
pytest
pypi-token: ${{ secrets.pypi_token }}
github-user: patrick-kidger
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r ./tests/requirements.txt
python -m pip install -e ".[tests]"
- name: Checks with pre-commit
uses: pre-commit/action@v2.0.3
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Now make your changes. Make sure to include additional tests if necessary.
Next verify the tests all pass:

```bash
pip install pytest
pip install -e ".[tests]"
pytest
```

Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,10 @@ reportIncompatibleMethodOverride = true
reportIncompatibleVariableOverride = false # Incompatible with eqx.AbstractVar
reportFunctionMemberAccess = false
include = ["equinox", "tests"]

[project.optional-dependencies]
tests = [
"pytest",
"beartype",
"optax"
]
4 changes: 0 additions & 4 deletions tests/requirements.txt

This file was deleted.

0 comments on commit 5a40d2e

Please sign in to comment.