Skip to content

Commit

Permalink
Merge pull request #81 from inspirehep/fix-requirements
Browse files Browse the repository at this point in the history
fix requirements
  • Loading branch information
MJedr authored Sep 13, 2023
2 parents 305571e + 37abbd6 commit 11d56ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@ jobs:
matrix:
include:
- python: python2
pip: pip
pip: pip2.7
steps:
- name: Checkout
uses: actions/checkout@v2
with:
python-version: ${{ matrix.python }}
fetch-depth: 0

- name: Install pip2
run: |
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python2.7 get-pip.py
- name: Install python dependencies
run: |
Expand All @@ -58,7 +62,8 @@ jobs:
- name: Show python dependencies
run: |
pip freeze
${{ matrix.python }} --version
${{ matrix.pip }} freeze
- name: Run tests
run: |
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@
"SQLAlchemy-Continuum==1.3.9",
"invenio_db==1.0.4",
"invenio-records-rest==1.6.4",
"jsonref==0.2",
"jsonresolver==0.2.1",
"itsdangerous<=2.0.1",
"Flask-Breadcrumbs==0.4.0",
"invenio-base==1.2.0",
"invenio-i18n==1.1.1",
Expand Down
3 changes: 2 additions & 1 deletion tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ def test_tasks(app, db, halt_workflow, sample_records_uri):
assert 'extra_data' in extra_data['source_data']
expected_extra_data = {
'crawler_job_id': job_id,
'crawler_results_path': urlparse(sample_records_uri).path
'crawler_results_path': urlparse(sample_records_uri).path,
'source_file': 'desy_records.xml'
}
assert expected_extra_data == extra_data['source_data']['extra_data']

Expand Down

0 comments on commit 11d56ea

Please sign in to comment.