kopia lustrzana https://github.com/collective/icalendar
Check distribution build
rodzic
2f5a0a5e21
commit
8ec072b9c9
|
|
@ -71,11 +71,29 @@ jobs:
|
||||||
parallel-finished: true
|
parallel-finished: true
|
||||||
format: cobertura
|
format: cobertura
|
||||||
|
|
||||||
|
test-distribution:
|
||||||
|
name: Check built package
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.12"
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install wheel twine
|
||||||
|
- name: Build distribution files
|
||||||
|
run: python setup.py bdist_wheel sdist
|
||||||
|
- name: Check distribution files
|
||||||
|
run: twine check dist/*
|
||||||
|
|
||||||
deploy-tag-to-pypi:
|
deploy-tag-to-pypi:
|
||||||
# only deploy on tags, see https://stackoverflow.com/a/58478262/1320237
|
# only deploy on tags, see https://stackoverflow.com/a/58478262/1320237
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
needs:
|
needs:
|
||||||
- run-tests
|
- run-tests
|
||||||
|
- test-distribution
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# This environment stores the TWINE_USERNAME and TWINE_PASSWORD
|
# This environment stores the TWINE_USERNAME and TWINE_PASSWORD
|
||||||
# see https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment
|
# see https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment
|
||||||
|
|
@ -92,7 +110,7 @@ jobs:
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.9"
|
python-version: "3.12"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
|
@ -134,6 +152,7 @@ jobs:
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
needs:
|
needs:
|
||||||
- run-tests
|
- run-tests
|
||||||
|
- test-distribution
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
environment:
|
||||||
name: github-release
|
name: github-release
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ Minor changes:
|
||||||
- Remove 4.x badge
|
- Remove 4.x badge
|
||||||
- Update list of ``tox`` environments
|
- Update list of ``tox`` environments
|
||||||
- Use Coveralls' GitHub Action
|
- Use Coveralls' GitHub Action
|
||||||
|
- Check distribution in CI
|
||||||
|
|
||||||
Breaking changes:
|
Breaking changes:
|
||||||
|
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue