Skip to content

Commit

Permalink
Made pickle test more deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
whitead committed Feb 7, 2023
1 parent 8a1d632 commit 3b99718
Show file tree
Hide file tree
Showing 10 changed files with 446 additions and 445 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@

name: test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest build
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
- name: Install
run: |
pip install .
- name: Run Test
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
pytest tests

name: test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest build
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
- name: Install
run: |
pip install .
- name: Run Test
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
pytest tests
38 changes: 19 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: "22.3.0"
hooks:
- id: black
- repo: https://github.com/tomcatling/black-nb
rev: "0.7"
hooks:
- id: black-nb
description: strip output and black source
additional_dependencies: ['black[jupyter]']
args: ["--clear-output"]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: "22.3.0"
hooks:
- id: black
- repo: https://github.com/tomcatling/black-nb
rev: "0.7"
hooks:
- id: black-nb
description: strip output and black source
additional_dependencies: ['black[jupyter]']
args: ["--clear-output"]
6 changes: 3 additions & 3 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest
pre-commit
requests
pytest
pre-commit
requests
4 changes: 2 additions & 2 deletions paperqa/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .docs import Docs, maybe_is_text
from .version import __version__
from .docs import Docs, maybe_is_text
from .version import __version__
Loading

0 comments on commit 3b99718

Please sign in to comment.