Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
276b8d4
- remove unnecessary files for build and publish
henrique-lh Oct 13, 2025
39a97ff
- update samples interfaces
henrique-lh Oct 13, 2025
9601f48
- ignore more files
henrique-lh Oct 13, 2025
65a305a
- update interfaces to disconsider url
henrique-lh Oct 13, 2025
5ad1903
- add script
henrique-lh Oct 13, 2025
8f80eb7
- remove ttl_cache
henrique-lh Oct 13, 2025
7e5e6d7
- remove pipeline import
henrique-lh Oct 13, 2025
d6cfdab
- remove pipeline
henrique-lh Oct 13, 2025
1095a08
- update readme
henrique-lh Oct 13, 2025
fe8e5a7
- update syncModel sample
henrique-lh Oct 13, 2025
9971f06
- add CONTRIBUTING.md
henrique-lh Oct 13, 2025
76714b8
- update model.pkl in syncModel sample
henrique-lh Oct 13, 2025
ed40c3c
- remove requirements.txt
henrique-lh Oct 13, 2025
d8cce0a
- migrate to uv manager
henrique-lh Oct 13, 2025
812b4af
- udpate publish to use uv instead of setuptools
henrique-lh Oct 13, 2025
e0e343c
- format
henrique-lh Oct 13, 2025
0763ad7
- update python version
henrique-lh Oct 13, 2025
2e25175
- update lint action
henrique-lh Oct 13, 2025
501a7b0
- use add instead of pip
henrique-lh Oct 13, 2025
1f24217
- remove audit because there's no requirements anymore
henrique-lh Oct 13, 2025
c463315
- update action
henrique-lh Oct 13, 2025
7dde181
- rollback
henrique-lh Oct 13, 2025
b8069e3
- support python 3.10
henrique-lh Oct 17, 2025
a464ede
- Update SKD description
henrique-lh Oct 17, 2025
1b88cbe
- add license to pyproject
henrique-lh Oct 17, 2025
ce52fc7
- update constant
henrique-lh Oct 20, 2025
43169b6
- add more pyton versions
henrique-lh Oct 20, 2025
ecdd652
- trigger manually
henrique-lh Oct 20, 2025
d0754b4
- exclude unnecessary files from build
henrique-lh Oct 20, 2025
11452b0
- update publish
henrique-lh Oct 20, 2025
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
22 changes: 12 additions & 10 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Lint
on: pull_request

on: workflow_dispatch

jobs:
python:
Expand All @@ -8,15 +9,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5

- name: Install uv and set Python version
uses: astral-sh/setup-uv@v1
with:
python-version: "3.10"
- name: Install dependencies
python-version: "3.12"

- name: Install ruff
working-directory: ./
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Run Ruff
run: uv add ruff

- name: Run Ruff check
working-directory: ./src/mlops_codex
run: ruff check --output-format=github .
run: uv run ruff check --output-format=github .
39 changes: 22 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
name: Publish to pypi
name: Publish to PyPI

on:
release:
types: [released]

permissions:
contents: read

jobs:
pypi-publish:
name: Upload release to PyPI
publish:
name: Upload release to PyPI using uv
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/datarisk-mlops-codex

permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
id-token: write # necessário para Trusted Publishing

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build
working-directory: ./
run: |
python setup.py sdist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
skip-existing: true
verbose: true
- name: Checkout repository
uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v6

- name: Install Python 3.12
run: uv python install 3.12

- name: Build package
run: uv build

- name: Publish to PyPI
run: uv publish --trusted-publishing always --verbose
9 changes: 2 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Check the python packages

on:
push:
on: workflow_dispatch

permissions:
contents: read
Expand All @@ -12,7 +11,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -25,10 +24,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Run Pip audit Check
uses: pypa/gh-action-pip-audit@v1.0.8
with:
inputs: requirements.txt
- name: Run Import Check
working-directory: ./
run: python3 tests/import.py
140 changes: 133 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,140 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[codz]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

*.zip
*.egg-info
*~
*#
_build/
#*
.idea
venv

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py.cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# Environments
.env
.envrc
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/

# Abstra
# Abstra is an AI-powered process automation framework.
# Ignore directories containing user credentials, local state, and settings.
# Learn more at https://abstra.io/docs
.abstra/

# Visual Studio Code
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
# and can be added to the global gitignore or merged into this file. However, if you prefer,
# you could uncomment the following to ignore the entire vscode folder
.vscode/

# Ruff stuff:
.ruff_cache/

# PyPI configuration file
.pypirc

# Marimo
marimo/_static/
marimo/_lsp/
__marimo__/

# Streamlit
.streamlit/secrets.toml

support/
debug.py
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
Comment thread
henrique-lh marked this conversation as resolved.
5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

Loading