Skip to content

Commit

Permalink
move test/unit to test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Aug 1, 2023
1 parent 4f208ac commit 2dbd2f0
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test/unit/requirements.txt
pip install -r test/requirements.txt
pip install .
- name: Build Test
Expand All @@ -52,28 +52,28 @@ jobs:
run: |
cd test/must-build && make html SPHINXOPTS='-W -D toc_object_entries_show_parents=all'
- name: Run Unit Testing
- name: Build Unit Tests
run: |
cd test/unit
cd test
find . -name '*.html' -exec rm {} \;
make html SPHINXOPTS='-W'
(cd _build/html && rm genindex.html index.html search.html php-modindex.html)
(cd _build/html && find . -name '*.html' -exec sh -c 'xmllint {} --xpath '"'"'//div[@role="main"]'"'"' | xmllint --format - > ../../{}' \;)
- name: Diff Unit Outputs
- name: Diff Unit Tests Output
run: |
cd test/unit
cd test
rm -r _build
git add . -N && git diff --exit-code
- name: Push Unit Changes
- name: Push Unit Tests Output
if: failure()
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ github.head_ref || github.ref_name }}.changes
# create_branch: true
push_options: '--force'
commit_message: Unit Changes
commit_message: Unit Tests Changes
commit_user_name: Bot
commit_user_email: [email protected]
commit_author: Bot <[email protected]>
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dist/
build/
doc/_build
test/must-build/_build
test/unit/_build
test/_build
*.pyc
*.egg-info
.DS_Store
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2dbd2f0

Please sign in to comment.