Skip to content
Draft
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
51 changes: 21 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8.x
uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8.x'


- name: Install build dependencies
uses: py-actions/py-dependency-install@v4
with:
update-pip: "true"
update-setuptools: "true"
update-wheel: "true"
path: "requirements.txt"

- name: Install pypa/build
run: >-
python -m
pip install
build
--user

- name: Creating dist files
run: |
python setup.py sdist
python setup.py bdist_wheel --universal
shell: bash
python-version: '3.12'

- name: CheckFiles
- name: Check release version
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
python - <<'PY'
import os
import runpy
version = runpy.run_path('mapilio_kit/components/version.py')['VERSION']
if os.environ['RELEASE_TAG'] != f'v{version}':
raise SystemExit('Release tag must match the package version')
PY

- name: Build and check distributions
run: |
ls dist
shell: bash

python -m pip install build twine
python -m build
python -m twine check dist/*

- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ concurrency:
cancel-in-progress: true

jobs:
package:
name: Build distributions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build a wheel from the source distribution
run: |
python -m pip install build twine
python -m build
python -m twine check dist/*

test:
name: pytest (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include LICENSE
include README.md
include requirements.txt

2 changes: 1 addition & 1 deletion mapilio_kit/components/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
reads ``VERSION`` from this module via ``exec``.
"""

VERSION = "3.0.6"
VERSION = "3.0.7"
Loading