Skip to content

Commit 3b99718

Browse files
committed
Made pickle test more deterministic
1 parent 8a1d632 commit 3b99718

File tree

10 files changed

+446
-445
lines changed

10 files changed

+446
-445
lines changed

.github/workflows/tests.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
2-
name: test
3-
4-
on:
5-
push:
6-
branches: [ main ]
7-
pull_request:
8-
branches: [ main ]
9-
10-
jobs:
11-
test:
12-
13-
runs-on: ubuntu-latest
14-
strategy:
15-
matrix:
16-
python-version: [3.8, 3.9, "3.10"]
17-
18-
steps:
19-
- uses: actions/checkout@v2
20-
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v2
22-
with:
23-
python-version: ${{ matrix.python-version }}
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install pytest build
28-
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
29-
- name: Install
30-
run: |
31-
pip install .
32-
- name: Run Test
33-
env:
34-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
35-
run: |
36-
pytest tests
1+
2+
name: test
3+
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
test:
12+
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: [3.8, 3.9, "3.10"]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install pytest build
28+
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
29+
- name: Install
30+
run: |
31+
pip install .
32+
- name: Run Test
33+
env:
34+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
35+
run: |
36+
pytest tests

.pre-commit-config.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.2.3
4-
hooks:
5-
- id: trailing-whitespace
6-
- id: check-yaml
7-
- id: end-of-file-fixer
8-
- id: mixed-line-ending
9-
- repo: https://github.com/psf/black
10-
rev: "22.3.0"
11-
hooks:
12-
- id: black
13-
- repo: https://github.com/tomcatling/black-nb
14-
rev: "0.7"
15-
hooks:
16-
- id: black-nb
17-
description: strip output and black source
18-
additional_dependencies: ['black[jupyter]']
19-
args: ["--clear-output"]
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.2.3
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: check-yaml
7+
- id: end-of-file-fixer
8+
- id: mixed-line-ending
9+
- repo: https://github.com/psf/black
10+
rev: "22.3.0"
11+
hooks:
12+
- id: black
13+
- repo: https://github.com/tomcatling/black-nb
14+
rev: "0.7"
15+
hooks:
16+
- id: black-nb
17+
description: strip output and black source
18+
additional_dependencies: ['black[jupyter]']
19+
args: ["--clear-output"]

dev-requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pytest
2-
pre-commit
3-
requests
1+
pytest
2+
pre-commit
3+
requests

paperqa/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
from .docs import Docs, maybe_is_text
2-
from .version import __version__
1+
from .docs import Docs, maybe_is_text
2+
from .version import __version__

0 commit comments

Comments
 (0)