Skip to content

Commit

Permalink
9 workflows (#23)
Browse files Browse the repository at this point in the history
* feat: CI workflow

* feat: publishing workflow
  • Loading branch information
DiTo97 authored Dec 8, 2024
1 parent d5efc85 commit 63cdbf0
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
pull_request:
branches:
- main

jobs:
CI:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4

- uses: astral-sh/setup-uv@v4
with:
version: ">0.5.0"
enable-cache: true
cache-dependency-glob: "uv.lock"

- run: uv python install ${{ matrix.python-version }}
- run: uv sync --all-extras

- name: pre-commit
run: uv run pre-commit run --all-files

- name: testing
run: uv run pytest tests
42 changes: 42 additions & 0 deletions .github/workflows/publishing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: publishing to PI

on:
push:
tags:
- "v*"

jobs:
build:
name: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
with:
version: ">0.5.0"
enable-cache: true
cache-dependency-glob: "uv.lock"
- run: uv build
- uses: actions/upload-artifact@v4
with:
name: alphacodings
path: dist/

publishing:
name: publishing
needs:
- build
runs-on: ubuntu-latest
environment:
name: publishing
url: https://pypi.org/p/alphacodings
permissions:
id-token: write

steps:
- uses: actions/download-artifact@v4
with:
name: alphacodings
path: dist/
- run: uv publish
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ if __name__ == "__main__":

## 🧠 motivation

The library is inspired by [R. Heaton](https://github.com/robert)'s base26 implementation and his story on manipulating data transmission in restrictive network channels on transatlantic flights using alphabetic-only encodings and tokenization.
The library is inspired by [R. Heaton](https://github.com/robert)'s base26 implementation and his story of manipulating data transmission in restrictive network channels on long-distance flights using alphabetic-only encodings and tokenization.

have a look at the original [repository](https://github.com/robert/pyskywifi) and [story blog post](https://robertheaton.com/pyskywifi) and show him some love!
have a look at the original [repository](https://github.com/robert/pyskywifi) and [blog post](https://robertheaton.com/pyskywifi) and show him some love!

## 📊 benchmarking

Expand Down

0 comments on commit 63cdbf0

Please sign in to comment.