-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create test-docstrings.yml (GitHub Action)
- Loading branch information
1 parent
e465f92
commit cd79859
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: test-docstrings | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
run-docstring-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
submodules: 'recursive' | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Cache hypothesis | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
ivy/.hypothesis | ||
key: ${{ runner.os }}-hypothesis | ||
|
||
- name: Run Docstring Tests | ||
run: | | ||
cd ivy | ||
mkdir -p .hypothesis | ||
docker run --rm -v `pwd`:/ivy -v `pwd`/.hypothesis:/.hypothesis unifyai/ivy:latest python3 -m pytest ivy/ivy_tests/test_docstrings.py |