Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LegrandNico committed Oct 14, 2024
1 parent dcebda7 commit c1b318d
Show file tree
Hide file tree
Showing 3 changed files with 154 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,15 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
name: Configure pip caching
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Install dependencies
run: |
sudo apt-get install graphviz
pip install poetry ipykernel coverage pytest pytest-cov
poetry install --with dev
python -m ipykernel install --user --name python3
- name: Run tests and coverage
run: |
Expand Down
145 changes: 144 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ sphinx-togglebutton = "^0.3.2"
sphinx-design = "^0.6.1"
sphinx-exercise = "^0.4.1"
ipywidgets = "^8.1.5"
ipykernel = "^6.29.5 "
coverage = "^7.6.3"
pytest = "^8.3.3"
pytest-cov = "^5.0.0"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit c1b318d

Please sign in to comment.