Skip to content

Commit

Permalink
Actually run the tests here!
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudd-O committed Nov 23, 2022
1 parent 5c8d7a0 commit cdd1930
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test
on: [push, pull_request]

jobs:
build:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
Expand All @@ -19,14 +19,12 @@ jobs:
set -e
# sudo add-apt-repository universe
# sudo apt-cache policy
sudo apt-get install -y python3-ledger tox gobject-introspection
sudo apt-get install -y python3-ledger tox python3-pytest gobject-introspection
# Needed to allow Tox to run in the current env.
# Current env necessary because we are installing GTK+ and other
# libraries needed for the programs.
pip3 install tox-current-env
# python -m pip install --upgrade pip
- name: Run tests
run: |
# pylint $(git ls-files '*.py')
tox --current-env -v
10 changes: 7 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
envlist = basepython

[testenv]
deps =
pytest
ledger
setenv = PYTHONPATH = {toxinidir}/src
# Unnecessary in a --current-env scenario.
# These are already installed in the test container.
# deps =
# pytest
# ledger
commands =
pytest-3 {posargs}

0 comments on commit cdd1930

Please sign in to comment.