Skip to content

Commit

Permalink
Create test-docstrings.yml (GitHub Action)
Browse files Browse the repository at this point in the history
Create test-docstrings.yml #2 (#1434)
  • Loading branch information
simonetgordon authored Jun 14, 2022
1 parent e465f92 commit cd79859
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test-docstrings.yml
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

0 comments on commit cd79859

Please sign in to comment.