Skip to content

Commit

Permalink
Merge pull request #194 from P403n1x87/tests/categorize
Browse files Browse the repository at this point in the history
tests: categorise tests
  • Loading branch information
P403n1x87 committed Sep 5, 2023
2 parents b469615 + 59d7581 commit 4d06231
Show file tree
Hide file tree
Showing 12 changed files with 66 additions and 21 deletions.
87 changes: 66 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,38 @@ jobs:
source .venv/bin/activate
pip install --upgrade pip
pip install -r test/requirements.txt
deactivate
- name: Run tests (with sudo)
run: |
ulimit -c unlimited
source .venv/bin/activate
sudo -E env PATH="$PATH" .venv/bin/pytest --pastebin=failed -svr a
deactivate
- name: Run tests (without sudo)
run: |
ulimit -c unlimited
source .venv/bin/activate
.venv/bin/pytest --pastebin=failed -svr a
deactivate
- name: Run unit tests
run: .venv/bin/pytest -sv test/cunit

- name: Run functional Austin tests (with sudo)
run: sudo -E env PATH="$PATH" .venv/bin/pytest --pastebin=failed -svr a test/functional -n auto -k "not austinp"
if: always()

- name: Run functional Austin tests (without sudo)
run: .venv/bin/pytest --pastebin=failed -svr a test/functional -n auto -k "not austinp"
if: always()

- name: Run functional austinp tests (with sudo)
run: sudo -E env PATH="$PATH" .venv/bin/pytest --pastebin=failed -svr a test/functional -n auto -k "austinp"
if: always()

- name: Run functional austinp tests (without sudo)
run: .venv/bin/pytest --pastebin=failed -svr a test/functional -n auto -k "austinp"
if: always()

- name: Run integrity tests (with sudo)
run: sudo -E env PATH="$PATH" .venv/bin/pytest --pastebin=failed -svr a test/integrity
if: always()

- name: Run integrity tests (without sudo)
run: .venv/bin/pytest --pastebin=failed -svr a test/integrity
if: always()

- name: Run support tests
run: .venv/bin/pytest -sv test/support
if: always()

wheels-linux:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -249,12 +266,29 @@ jobs:
python${{ matrix.python-version }} -m venv .venv \
|| (python${{ matrix.python-version }} -m pip install virtualenv && python${{ matrix.python-version }} -m virtualenv .venv)
- name: Run tests
- name: Run functional tests
run: |
source .venv/bin/activate
sudo -E pytest --ignore=test/cunit --pastebin=failed -svr a
pytest --ignore=test/cunit --pastebin=failed -svr a -k _darwin
deactivate
sudo -E pytest --pastebin=failed -svr a -n auto test/functional -k "not austinp"
if: always()

- name: Run integrity tests
run: |
source .venv/bin/activate
sudo -E pytest --pastebin=failed -svr a -n auto test/integrity -k "not austinp"
if: always()

- name: Run support tests
run: |
source .venv/bin/activate
sudo -E pytest --pastebin=failed -svr a -n auto test/support
if: always()

- name: Run Darwin-only tests
run: |
source .venv/bin/activate
pytest --pastebin=failed -svr a -k "_darwin" test/functional
if: always()

wheels-osx:
runs-on: macos-latest
Expand Down Expand Up @@ -350,13 +384,24 @@ jobs:
venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -r test/requirements.txt
deactivate
- name: Run tests
- name: Run functional tests
run: |
venv\Scripts\Activate.ps1
python -m pytest --full-trace --ignore=test\cunit --pastebin=failed -svr a
deactivate
python -m pytest --full-trace --pastebin=failed -svr a test\functional -k "not austinp"
if: always()

- name: Run integrity tests
run: |
venv\Scripts\Activate.ps1
python -m pytest --full-trace --pastebin=failed -svr a test\integrity -k "not austinp"
if: always()

- name: Run support tests
run: |
venv\Scripts\Activate.ps1
python -m pytest --full-trace --pastebin=failed -svr a test\support
if: always()

wheels-win:
runs-on: windows-latest
Expand Down
Empty file added test/functional/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added test/integrity/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
Empty file added test/support/__init__.py
Empty file.

0 comments on commit 4d06231

Please sign in to comment.