Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI #9

Merged
merged 6 commits into from
Feb 16, 2024
Merged

CI #9

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
39 changes: 39 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

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

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black hatch
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with black
run: |
black --diff --check -t py311 .
- name: Test with hatch
run: |
hatch run cov
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Memento
# Two Sigma Memento
Memento is a framework and lightweight set of standards that encourage discipline in the way data
is incrementally transformed through code. The goal of Memento is to ensure that data is
reproducible and that accurate provenance is maintained in metadata. The Memento Framework
Expand Down
5 changes: 3 additions & 2 deletions twosigma/memento/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ def _load_plugins():
"""
Dynamically load plugins by importing their modules.
"""
for entry_point in entry_points(group="twosigma.memento.plugin"):
importlib.import_module(entry_point.name)
for entry_point in entry_points():
if "group" in entry_point and entry_point.group == "twosigma.memento.plugin":
importlib.import_module(entry_point.name)


_load_plugins()
Loading