Skip to content
Merged
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
31 changes: 31 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ 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

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.
Expand Down