From f0e0badc54a342b6e28c356803de8c20434aafb7 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 6 Feb 2026 12:48:02 +0000 Subject: [PATCH 1/2] Update README installation and test instructions --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index acc2be4..f616499 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,9 @@ The `did` library provides a framework for managing and querying data that is or source venv/bin/activate # On Windows, use `venv\Scripts\activate` ``` -3. **Install the required dependencies:** +3. **Install the package and dependencies:** ```bash - pip install -r requirements.txt + pip install -e ".[dev]" ``` ### Running the Tests @@ -44,7 +44,7 @@ The `did` library provides a framework for managing and querying data that is or To run the test suite, use the following command: ```bash -find . -name "test_*.py" -exec python -m unittest {} + +python -m unittest discover tests ``` This will discover and run all the tests in the `tests` directory. From 6618b669da58e61e256a6dc5c3aa3c6898bf222f Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 6 Feb 2026 13:00:34 +0000 Subject: [PATCH 2/2] Add GitHub Actions workflow for CI --- .github/workflows/python-package.yml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/python-package.yml diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..812ea24 --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,31 @@ +name: Python package + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e ".[dev]" + pip install pytest + - name: Test with pytest + run: | + pytest