Skip to content

Commit 4bddcaf

Browse files
jmarerowep
andcommitted
invenio: new version
* Updates dependencies. * Replaces `safety` with `pip-audit` for python vulnerabilities checks. * Uses python 3.12. Co-Authored-by: Peter Weber <peter.weber@rero.ch>
1 parent 7d6ab01 commit 4bddcaf

File tree

13 files changed

+3154
-2666
lines changed

13 files changed

+3154
-2666
lines changed

.github/workflows/tests.yml renamed to .github/workflows/continuous-integration-test.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# You should have received a copy of the GNU Affero General Public License
1616
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

18-
name: CI
18+
name: build
1919

2020
on:
2121
push:
@@ -28,25 +28,25 @@ on:
2828
- staging
2929
schedule:
3030
# * is a special character in YAML so you have to quote this string
31-
- cron: "0 3 * * 6"
31+
- cron: '0 3 * * 6'
3232
workflow_dispatch:
3333
inputs:
3434
reason:
35-
description: "Reason"
35+
description: 'Reason'
3636
required: false
37-
default: "Manual trigger"
37+
default: 'Manual trigger'
3838

3939
jobs:
40-
Tests:
40+
test:
4141
runs-on: ubuntu-latest
4242
strategy:
4343
matrix:
4444
# TODO: You can add/remove combinations e.g. `dev` requirements or
45-
# `postgresql13` by adding a new item to the following lists.
45+
# `postgresql15` by adding a new item to the following lists.
4646
# You can see the complete list of services and versions that are available at:
4747
# https://docker-services-cli.readthedocs.io/en/latest/configuration.html
48-
python-version: ["3.9"]
49-
db-service: [postgresql13]
48+
python-version: ['3.12']
49+
db-service: [postgresql15]
5050
search-service: [elasticsearch]
5151
dependencies: ['dev', 'deploy']
5252

@@ -56,27 +56,28 @@ jobs:
5656

5757
steps:
5858
- name: Checkout
59-
uses: actions/checkout@v2
59+
uses: actions/checkout@v4
6060

6161
- name: Set up Python ${{ matrix.python-version }}
62-
uses: actions/setup-python@v2
62+
uses: actions/setup-python@v5
6363
with:
6464
python-version: ${{ matrix.python-version }}
6565

6666
- name: Install Poetry
6767
uses: snok/install-poetry@v1
6868

69-
- name: Update depencencies
70-
if: ${{ matrix.dependencies == 'dev' }}
71-
run: poetry update
72-
7369
- name: Install dependencies
7470
run: |
7571
poetry install
7672
73+
- name: Update depencencies
74+
if: ${{ matrix.dependencies == 'dev' }}
75+
run: poetry update
76+
7777
- name: Run tests
7878
run: |
7979
poetry run ./run-tests.sh
8080
8181
- name: Test publish in dry run mode
82+
if: ${{ matrix.dependencies == 'deploy' }} and ${{ matrix.python-version == '3.12' }}
8283
run: poetry publish --build --dry-run

.github/workflows/pypi-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ jobs:
2828
runs-on: ubuntu-latest
2929
environment: pypi
3030
steps:
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v4
3232

3333
- name: Set up Python
34-
uses: actions/setup-python@v2
34+
uses: actions/setup-python@v5
3535
with:
36-
python-version: 3.9
36+
python-version: 3.12
3737

3838
- name: Install Poetry
3939
uses: snok/install-poetry@v1

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@ Before you submit a pull request, check that it meets these guidelines:
113113
1. The pull request should include tests and must not decrease test coverage.
114114
2. If the pull request adds functionality, the docs should be updated. Put
115115
your new functionality into a function with a docstring.
116-
3. The pull request should work for Python 3.6, 3.7, 3.8 and 3.9. Check
116+
3. The pull request should work for Python 3.9.2, 3.10, 3.11 and 3.12 Check
117117
https://github.com/inveniosoftware/rero/rero-invenio-files/actions?query=event%3Apull_request
118118
and make sure that the tests pass for all supported Python versions.

0 commit comments

Comments
 (0)