Skip to content

Commit

Permalink
github: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
michamos committed Jan 22, 2024
1 parent 6deeaf6 commit 7467c82
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,14 @@ jobs:
with:
fetch-depth: 0

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

- name: 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: |
${{ matrix.python }} --version
${{ matrix.pip }} freeze
Expand Down Expand Up @@ -71,25 +65,24 @@ jobs:
fetch-depth: 0

- name: Set up Python 2.7
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 2.7

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

- name: Install python dependencies
uses: ./.github/actions/install-python-dependencies
run: |
python -m pip install --user --upgrade pip
pip --no-cache-dir install --user setuptools wheel "urllib3==1.25.11"
pip --no-cache-dir install --user -r requirements.txt
- name: Build package
run: python setup.py sdist bdist_wheel
run: |
mkdir clean-build
python setup.py sdist bdist_wheel --universal --dist-dir ./clean-build
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
packages_dir: clean-build/
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ include = inspire_json_merger/*.py
addopts = --cov=inspire_json_merger --cov-report=term-missing:skip-covered

[flake8]
ignore = *.py E501 FI12 FI14 FI15 FI16 FI17 FI18 FI50 FI51 FI53
ignore = E501 FI12 FI14 FI15 FI16 FI17 FI18 FI50 FI51 FI53
2 changes: 1 addition & 1 deletion tests/unit/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def test_grobid_on_arxiv_operations_doesnt_conflict_on_author_full_name():
"emails": [
"[email protected]"
],
"full_name":"Sułkowski, Piotr"
"full_name": "Sułkowski, Piotr"
}
]
}
Expand Down

0 comments on commit 7467c82

Please sign in to comment.