Skip to content

Commit

Permalink
ci: upgrade actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco committed Feb 13, 2025
1 parent 667c023 commit fc1b0dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 32 deletions.
29 changes: 3 additions & 26 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2020 CERN.
# Copyright (C) 2020-2025 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details
Expand All @@ -15,28 +15,5 @@ on:

jobs:
Publish:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v2

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build package
run: python setup.py sdist bdist_wheel

- name: Publish on PyPI
uses: pypa/[email protected]
with:
user: __token__
# The token is provided by the inveniosoftware organization
password: ${{ secrets.pypi_token }}
uses: inveniosoftware/workflows/.github/workflows/pypi-publish.yml@master
secrets: inherit
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ on:

jobs:
Tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: '3.12'

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[metadata]
name = counter-robots
version = attr: counter_robots.__version__
description = "Library for COUNTER-compliant detection of machines and robots."
description = Library for COUNTER-compliant detection of machines and robots.
long_description = file: README.rst, CHANGES.rst
keywords = COUNTER, user-agent, robot detection
license = MIT
Expand Down

0 comments on commit fc1b0dd

Please sign in to comment.