Going online (first public version)

This commit is contained in:
Karim shoair
2024-10-13 23:38:48 +03:00
parent ab0e2779f9
commit a721073b7c
37 changed files with 3065 additions and 140 deletions
+31
View File
@@ -0,0 +1,31 @@
name: Publish Python 🐍 distributions 📦 to PyPI
on:
release:
types: [created]
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x" # Latest available Python version
- name: Upgrade pip
run: python3 -m pip install --upgrade pip
- name: Install build
run: python3 -m pip install --upgrade build twine setuptools
- name: Build a binary wheel and a source tarball
run: python3 -m build --sdist --wheel --outdir dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1.10.3
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
+48
View File
@@ -0,0 +1,48 @@
name: Tests
on: [push, pull_request]
concurrency:
group: ${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.6"
env:
TOXENV: py
- python-version: "3.7"
env:
TOXENV: py
- python-version: "3.8"
env:
TOXENV: py
- python-version: "3.9"
env:
TOXENV: py
- python-version: "3.10"
env:
TOXENV: py
- python-version: "3.11"
env:
TOXENV: py
- python-version: "3.12"
env:
TOXENV: py
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
env: ${{ matrix.env }}
run: |
pip install -U tox
tox