Skip to content

Commit a641f32

Browse files
committed
update test cases
1 parent 0a9247d commit a641f32

File tree

6 files changed

+78
-101
lines changed

6 files changed

+78
-101
lines changed

.github/scripts/extract_files.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22

33
gpg -q --batch --yes -d --passphrase="$FILES_PASSPHRASE" \
4-
-o tests/files.tar tests/files.enc
5-
tar xf tests/files.tar -C tests/
4+
-o tests/files.tar.bz2 tests/files.enc
5+
tar xjf tests/files.tar.bz2 -C tests/

.github/workflows/run-pytest.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,21 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v3
18+
- name: Install poetry
19+
run: pipx install poetry
1820
- name: Set up Python ${{ matrix.python-version }}
1921
uses: actions/setup-python@v4
2022
with:
2123
python-version: ${{ matrix.python-version }}
24+
cache: 'poetry'
2225
- name: Extract test files
2326
run: ./.github/scripts/extract_files.sh
2427
env:
2528
FILES_PASSPHRASE: ${{ secrets.FILES_PASSPHRASE }}
26-
- name: Install and configure poetry
27-
uses: snok/install-poetry@v1
28-
with:
29-
virtualenvs-create: false
3029
- name: Install dependencies
3130
run: poetry install -E mupdf
32-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
3331
- name: Test with pytest
34-
run: |
35-
pytest
32+
run: poetry run pytest
3633
env:
3734
BAD_CAS_FILE: ${{ secrets.BAD_CAS_FILE }}
3835
CAMS_CAS_FILE: ${{ secrets.CAMS_CAS_FILE }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ dmypy.json
132132

133133
tests/files/**
134134
tests/files.tar
135+
tests/files.tar.bz2
135136
.DS_Store
136137

137138
casparser.code-workspace

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ repos:
1515
rev: 23.7.0
1616
hooks:
1717
- id: black
18-
language_version: python3.8

0 commit comments

Comments
 (0)