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

config: ignore arXiv author updates when published #115

Merged
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
15 changes: 0 additions & 15 deletions .github/actions/install-python-dependencies/action.yml

This file was deleted.

21 changes: 12 additions & 9 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,34 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [2.7, 3.6]
include:
- python: python3
pip: pip3
- python: python2
pip: pip

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Cache Python
uses: actions/[email protected]
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ github.sha }}
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ github.sha }}

- name: Install python dependencies
uses: ./.github/actions/install-python-dependencies
run: |
${{ matrix.pip }} install --user --upgrade pip
${{ matrix.pip }} --no-cache-dir install --user setuptools wheel "urllib3==1.25.11"
${{ matrix.pip }} --no-cache-dir install --user -r requirements.txt

- name: Show python dependencies
run: pip freeze
${{ matrix.python }} --version
${{ matrix.pip }} freeze

- name: Run tests
uses: ./.github/actions/run-tests
Expand Down
1 change: 0 additions & 1 deletion inspire_json_merger/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ class ArxivOnPublisherOperations(MergerConfigurationOperations):
'abstracts': U.KEEP_UPDATE_AND_HEAD_ENTITIES_HEAD_FIRST,
'arxiv_eprints': U.KEEP_UPDATE_AND_HEAD_ENTITIES_HEAD_FIRST,
'arxiv_eprints.categories': U.KEEP_ONLY_UPDATE_ENTITIES,
'authors': U.KEEP_UPDATE_ENTITIES_CONFLICT_ON_HEAD_DELETE,
'authors.ids': U.KEEP_UPDATE_AND_HEAD_ENTITIES_HEAD_FIRST,
'authors.raw_affiliations': U.KEEP_ONLY_HEAD_ENTITIES,
'core': D.FALLBACK_KEEP_HEAD,
Expand Down