Skip to content

Commit

Permalink
full tests only on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Aug 27, 2023
1 parent 5ecbdc5 commit 66f8b28
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,37 @@ runs:
shell: bash
run: echo ${{ runner.os }}

- name: Windows specific
if: ${{ runner.os == 'Windows' }}
shell: bash
run: |
poetry run pytest tests
- name: MacOs specific
if: ${{ runner.os == 'Mac' }}
shell: bash
run: |
poetry run pytest tests
- name: Install pytest
if: ${{ runner.os == 'Linux' }}
shell: bash
run: |
poetry run pip install --no-cache-dir \
pytest-html \
pytest-random-order
- name: Run tests
shell: bash
run : |
poetry run pytest --cov=${{ inputs.source-folder || 'cvx' }} --random-order --verbose \
--html=artifacts/tests/html-report/report.html \
--cov-report xml:artifacts/tests/coverage/coverage.xml \
--cov-report html:artifacts/tests/html-coverage \
tests/
poetry run pytest --cov=${{ inputs.source-folder || 'cvx' }} --random-order --verbose \
--html=artifacts/tests/html-report/report.html \
--cov-report xml:artifacts/tests/coverage/coverage.xml \
--cov-report html:artifacts/tests/html-coverage \
tests/
# I want to upload the result to gh-pages, hence this file disturbs
rm -f artifacts/tests/html-coverage/.gitignore
# I want to upload the result to gh-pages, hence this file disturbs
rm -f artifacts/tests/html-coverage/.gitignore
- name: Archive tests results
if: ${{ runner.os == 'Linux' }}
uses: actions/upload-artifact@v3
with:
name: tests
Expand Down

0 comments on commit 66f8b28

Please sign in to comment.