-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run test suite in the future to test resilience against progress of t…
…ime (and move failing tests to pytest, while at it)
- Loading branch information
1 parent
87ef68a
commit 597d7dd
Showing
18 changed files
with
1,018 additions
and
807 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Tests | ||
on: | ||
push: | ||
pull_request: | ||
types: [opened, reopened] | ||
pull_request_target: | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
|
||
name: libfaketime test | ||
steps: | ||
- name: Install APT dependencies | ||
run: sudo apt-get install -y firefox faketime | ||
|
||
- name: Acquire sources | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.12 | ||
architecture: x64 | ||
|
||
- name: Apply caching of dependencies | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ hashFiles('**/requirements-*.txt') }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -U pip setuptools wheel | ||
pip install -r requirements.txt -r requirements/requirements-test.txt | ||
- name: Run tests | ||
run: faketime pytest -v --cov-report term-missing --durations=20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.