Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.1.0 #119

Merged
merged 8 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[flake8]
per-file-ignores =
tests/*:E501, W503
tests/*:E501, W503
tests/test_bookops_worldcat.py: F401
44 changes: 44 additions & 0 deletions .github/workflows/monthly-api-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: monthly API response check
on:
pull_request:
branches:
- main
- "releases/**"
schedule:
- cron: '0 5 15 * *'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
WCKey: ${{ secrets.WC_KEY }}
WCSecret: ${{ secrets.WC_SECRET }}
WCScopes: "WorldCatMetadataAPI"
jobs:
webtests:
name: Run live webtests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Check if PR is from fork
if: ${{ github.event_name == 'pull_request' }}
run: |
if [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.event.pull_request.base.repo.full_name }}" ]; then
echo "is_fork=true" >> $GITHUB_ENV
else
echo "is_fork=false" >> $GITHUB_ENV
fi
- name: Set up Python ${{ matrix.python-version}}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version}}
- name: Install dependencies
if: ${{ env.is_fork == 'false' || github.event_name == 'schedule' }}
run: |
python -m pip install --upgrade pip
python -m pip install -r dev-requirements.txt
- name: Run monthly live tests
if: ${{ env.is_fork == 'false' || github.event_name == 'schedule' }}
run: |
pytest -m "webtest"
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version}}
Expand Down
2 changes: 1 addition & 1 deletion bookops_worldcat/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__title__ = "bookops-worldcat"
__version__ = "1.0.0"
__version__ = "1.1.0"
__author__ = "Tomasz Kalata"
__author_email__ = "[email protected]"
1 change: 1 addition & 0 deletions bookops_worldcat/authorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class WorldcatAccessToken:
"expires_in": "1199",
"principalID": "",
"principalIDNS": "",
"scope": "WorldCatMetadataAPI",
"scopes": "WorldCatMetadataAPI",
"contextInstitutionId": "00001",
"expires_at": "2020-08-23 18:45:29Z"
Expand Down
Loading