Skip to content

Commit

Permalink
feat: initial release of eventlib-py
Browse files Browse the repository at this point in the history
  • Loading branch information
mickare committed Aug 10, 2024
0 parents commit 8853a75
Show file tree
Hide file tree
Showing 32 changed files with 4,149 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.png filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.bmp filter=lfs diff=lfs merge=lfs -text
*.svg filter=lfs diff=lfs merge=lfs -text
*.sketch filter=lfs diff=lfs merge=lfs -text
*.pkl filter=lfs diff=lfs merge=lfs -text
*.npz filter=lfs diff=lfs merge=lfs -text
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
branches:
- main

env:
python_version: 3.11

jobs:
release:
runs-on: ubuntu-latest
outputs:
released: ${{ steps.release.outputs.released }}
version: ${{ steps.release.outputs.version }}
tag: ${{ steps.release.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install poetry & python-semantic-release
run: pipx install poetry~=1.8.3 python-semantic-release~=9.8.6

- name: Set up Python ${{ env.python_version }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.python_version }}
cache: "poetry"

- name: Python Semantic Release
id: release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_COMMIT_AUTHOR: "github-actions <actions@github.com>"
run: |
semantic-release --strict version --commit
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test

on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install poetry
run: pipx install poetry~=1.8.3

- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
cache: 'poetry'

- name: Install dependencies
run: poetry install --with=dev --with=benchmark --all-extras --no-interaction
- name: Black
run: poetry run black --check .
- name: Isort
run: poetry run isort --check-only .
- name: Mypy
run: poetry run mypy .
- name: Pylint
run: poetry run pylint
- name: Pytest
run: poetry run pytest --cov
30 changes: 30 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Byte-compiled / optimized / DLL files
__pycache__/

# Distribution / packaging
build/
*.egg-info/
*.egg

# Translations
*.mo
*.pot

# Environments
venv/
.venv/

# Tools
.mypy_cache/
.pytest_cache/
.coverage

# IDEs
.idea
.vcode

# OS
.DS_Store

# Benchmark files
*.json
Loading

0 comments on commit 8853a75

Please sign in to comment.