-
Notifications
You must be signed in to change notification settings - Fork 43
36 lines (29 loc) · 934 Bytes
/
faketime.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Tests with faked time
on:
push:
pull_request:
jobs:
run:
runs-on: ubuntu-latest
name: libfaketime test
steps:
- name: Install APT dependencies
run: sudo apt-get install -y firefox softhsm2 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 -f +100y pytest -v --no-selenium --cov-report term-missing --durations=20