Skip to content

Commit

Permalink
Initial export of Penzai.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 625433936
  • Loading branch information
danieldjohnson committed Apr 17, 2024
0 parents commit ed92dd0
Show file tree
Hide file tree
Showing 163 changed files with 66,958 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Unittests

# Allow to trigger the workflow manually (e.g. when deps changes)
on: [push, workflow_dispatch]

jobs:
unittest-job:
runs-on: ubuntu-latest
timeout-minutes: 30

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v3

# Install deps
- uses: actions/setup-python@v4
with:
python-version: 3.10
# Uncomment to cache of pip dependencies (if tests too slow)
# cache: pip
# cache-dependency-path: '**/pyproject.toml'

- run: pip --version
- run: pip install -e .[extras]
- run: pip freeze

# Run tests
- name: Run tests
run: python run_tests.py
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Compiled python modules.
*.pyc

# Byte-compiled
_pycache__/
.cache/

# Poetry, setuptools, PyPI distribution artifacts.
/*.egg-info
.eggs/
build/
dist/
poetry.lock

# Tests
.pytest_cache/

# Type checking
.pytype/

# Other
*.DS_Store

# PyCharm
.idea
Loading

0 comments on commit ed92dd0

Please sign in to comment.