Skip to content
Merged
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
59 changes: 59 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Python CI
on: push
jobs:
lint:
name: Check lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

# Update output format to enable automatic inline annotations.
- name: Run Ruff
run: |
uv run ruff format --check tests
uv run ruff check --output-format=github tests

build:
name: Check Build
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v5

- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
enable-cache: true

- name: Build
run: |
uv build

# Check that basic features work and we didn't miss to include crucial files
- name: Smoke test (wheel)
run: uv run --isolated --with dist/*.whl pytest
- name: Smoke test (source distribution)
run: uv run --isolated --with dist/*.tar.gz pytest


43 changes: 43 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Rust CI

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]

env:
CARGO_TERM_COLOR: always

jobs:
rust-build:
name: Check lint and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
# To only cache runs from `master`
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Add components
run: rustup component add clippy rustfmt

- name: Rustfmt
run: cargo fmt -- --check

- name: Clippy
run: cargo clippy --all-targets

- name: Build (minimal)
run: |
cargo build --no-default-features --verbose

- name: Build (normal)
run: |
cargo build --verbose

- name: Build (full)
run: |
cargo build --all-features --verbose
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- (lib) Implement the initial library
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ pythonize = "0.20"
indexmap = "2.11.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
afrim-preprocessor = { version = "0.6.2", default-features = false, features = ["serde"], git = "https://github.com/pythonbrad/afrim", rev = "448c9a4" }
afrim-translator = { version = "0.2.2", default-features = false, features = ["serde"], git = "https://github.com/pythonbrad/afrim", rev = "448c9a4" }
afrim-config = { version = "0.4.6", default-features = false, git = "https://github.com/pythonbrad/afrim", rev = "448c9a4" }
afrim-preprocessor = { version = "0.6.3", default-features = false, features = ["serde"], git = "https://github.com/fodydev/afrim", rev = "16ade83" }
afrim-translator = { version = "0.2.3", default-features = false, features = ["serde"], git = "https://github.com/fodydev/afrim", rev = "16ade83" }
afrim-config = { version = "0.4.7", default-features = false, git = "https://github.com/fodydev/afrim", rev = "16ade83" }
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 Esubalew Chekol

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading