Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Jan 15, 2024
1 parent dab17a7 commit e4655ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
- name: Move tests and delete Symfem source
run: |
mv symfem-src/test .
mv symfem-src/README .
rm -r symfem-src
- run: |
wget -O symfem.tar.gz https://pypi.io/packages/source/s/symfem/symfem-2024.1.1.tar.gz
Expand Down
4 changes: 4 additions & 0 deletions test/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ def test_readme_elements():
elementlist[r] = []
elementlist[r].append(e.names[0])

if not os.path.isfile(os.path.join(os.path.dirname(os.path.realpath(__file__)),
"../docs/index.rst")):
pytest.xfail("Could not find README.md")

root = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..")
with open(os.path.join(root, "README.md")) as f:
readme = f.read().split("# Available cells and elements")[1]
Expand Down

0 comments on commit e4655ab

Please sign in to comment.