Skip to content

Commit

Permalink
DEV: Speed-up for CI (#1069)
Browse files Browse the repository at this point in the history
- pytest: Set pytest testpaths and norecursedirs
- dependencies: Cache pip packages (pycryptodome)
  • Loading branch information
MartinThoma authored Jul 7, 2022
1 parent a345690 commit a1aaf91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/github-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,18 @@ jobs:
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Cache Downloaded Files
id: cache-downloaded-files
uses: actions/cache@v3
with:
path: tests/pdf_cache
key: cache-downloaded-files
- name: Setup Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/requirements/ci.txt'
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
Expand Down
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ filterwarnings =

markers =
external: Tests which use files from https://github.com/py-pdf/sample-files

testpaths = tests
norecursedirs = tests/pdf_cache

0 comments on commit a1aaf91

Please sign in to comment.