Skip to content

Set max_renewable_life to 1 week for the MIT KDC #89

Set max_renewable_life to 1 week for the MIT KDC

Set max_renewable_life to 1 week for the MIT KDC #89

Workflow file for this run

name: Test k5test
on:
push:
branches:
- main
paths-ignore:
- CODE_OF_CONDUCT.md
- K5TEST-LICENSE.txt
- LICENSE.txt
- README.md
pull_request:
branches:
- main
paths-ignore:
- CODE_OF_CONDUCT.md
- K5TEST-LICENSE.txt
- LICENSE.txt
- README.md
release:
types:
- published
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test
run: |
echo "::group::Installing Python Requirements"
python -m pip install --upgrade pip setuptools wheel
python -m pip install --requirement requirements-dev.txt
python -m pip install .
echo "::endgroup::"
echo "::group::Running Sanity Checks"
python -m black . --check
python -m isort . --check-only
echo "::endgroup::"
publish:
name: publish
needs:
- test
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
- name: Build sdist and wheel
run: |
python -m pip install --upgrade pip setuptools wheel
python setup.py bdist_wheel --universal
python setup.py sdist
- name: Capture sdist and wheel
uses: actions/upload-artifact@v3
with:
name: k5test
path: dist/*
- name: Publish
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@release/v1