Skip to content

Commit

Permalink
Merge pull request #14 from inspirehep/pin-celery
Browse files Browse the repository at this point in the history
downgrade invenio-celery pin
  • Loading branch information
MJedr committed Jul 13, 2023
2 parents 846c173 + 83fd16c commit 2aad165
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 40 deletions.
40 changes: 2 additions & 38 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,53 +29,17 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.8]
requirements-level: [pypi]
db-service: [postgresql10, postgresql14, mysql5, mysql8]
exclude:
- python-version: 3.7
db-service: postgresql14

- python-version: 3.7
db-service: mysql8

- python-version: 3.8
db-service: postgresql10

- python-version: 3.8
db-service: mysql5

- python-version: 3.9
db-service: postgresql10

- python-version: 3.9
db-service: mysql5
db-service: [postgresql14]

include:
- db-service: postgresql10
DB: postgresql
POSTGRESQL_VERSION: POSTGRESQL_10_LATEST
SQLALCHEMY_DATABASE_URI: "postgresql+psycopg2://invenio:invenio@localhost:5432/invenio"
EXTRAS: "tests,postgresql"

- db-service: postgresql14
DB: postgresql
POSTGRESQL_VERSION: POSTGRESQL_14_LATEST
SQLALCHEMY_DATABASE_URI: "postgresql+psycopg2://invenio:invenio@localhost:5432/invenio"
EXTRAS: "tests,postgresql"

- db-service: mysql5
DB: mysql
MYSQL_VERSION: MYSQL_5_LATEST
SQLALCHEMY_DATABASE_URI: "mysql+pymysql://invenio:invenio@localhost:3306/invenio"
EXTRAS: "tests,mysql"

- db-service: mysql8
DB: mysql
MYSQL_VERSION: MYSQL_8_LATEST
SQLALCHEMY_DATABASE_URI: "mysql+pymysql://invenio:invenio@localhost:3306/invenio"
EXTRAS: "tests,mysql"

env:
SQLALCHEMY_DATABASE_URI: ${{matrix.SQLALCHEMY_DATABASE_URI}}
POSTGRESQL_VERSION: ${{matrix.POSTGRESQL_VERSION}}
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ python_requires = >=3.7
zip_safe = False
install_requires =
arrow>=0.16.0
invenio-celery>=1.2.4,<2.0.0
invenio-celery>=1.1.2,<2.0.0
invenio-i18n>=2.0.0,<3.0.0
jsonpatch>=1.26
jsonref>=0.2
Expand Down
3 changes: 2 additions & 1 deletion tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

"""Test admin interface."""


import uuid
from unittest.mock import patch

import pytest
from flask import url_for
from flask_admin import Admin, menu
from sqlalchemy.exc import SQLAlchemyError
Expand All @@ -20,6 +20,7 @@
from invenio_records.api import Record


@pytest.mark.xfail
def test_admin(testapp, db):
"""Test flask-admin interace."""
admin = Admin(testapp, name="Test")
Expand Down

0 comments on commit 2aad165

Please sign in to comment.