Skip to content
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
42 changes: 23 additions & 19 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
name: LibraryOfCongress/tests-bagit-python
permissions: {}

on:
workflow_dispatch:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-16.04
steps:
- name: checkout
uses: actions/checkout@v3.5.0
- uses: actions/setup-python@v4.6.0
with:
python-version: "${{ matrix.python }}"
- run: apt-get -y install gettext
- run: pip install --upgrade pip
- run: pip install coveralls coverage
- run: coverage run --include=bagit.py setup.py test
- run: coveralls
if: "${{ success() }}"
strategy:
matrix:
python:
- '3.10'
test:
permissions:
contents: read
runs-on: ubuntu-16.04
steps:
- name: checkout
uses: actions/checkout@v3.5.0
- uses: actions/setup-python@v4.6.0
with:
python-version: "${{ matrix.python }}"
- run: apt-get -y install gettext
- run: pip install --upgrade pip
- run: pip install coveralls coverage
- run: coverage run --include=bagit.py setup.py test
- run: coveralls
if: "${{ success() }}"
strategy:
matrix:
python:
- "3.10"
7 changes: 5 additions & 2 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: "PyPI releases"
permissions: {}

on: release

jobs:
build_sdist:
name: Build Python source distribution
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -19,14 +22,14 @@ jobs:
pypi-publish:
name: Upload release to PyPI
if: github.event_name == 'release' && github.event.action == 'published'
permissions:
id-token: write
needs:
- build_sdist
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/bagit
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Test
permissions: {}

on:
push:
Expand All @@ -8,6 +9,8 @@ on:

jobs:
ruff: # https://docs.astral.sh/ruff
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -16,11 +19,14 @@ jobs:

test:
needs: ruff
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
python-version:
["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
Loading