Skip to content

Commit

Permalink
✨ setup testing directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry committed Oct 16, 2023
1 parent 204b17e commit d455956
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,27 @@ jobs:

- name: Run flake8
run: tox -e lint
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python:
- version: "3.10"
toxenv: "py310"
- version: "3.9"
toxenv: "py39"
- version: "3.8"
toxenv: "py38"
steps:
- uses: actions/checkout@v3

- uses: actions/[email protected]
with:
python-version: ${{ matrix.python.version }}

- name: Install tox
run: python -m pip install tox

- name: Run pytest
run: tox -e ${{ matrix.python.toxenv }}
Empty file added test/__init__.py
Empty file.
4 changes: 4 additions & 0 deletions test/test_pkg.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def test_package():
"""Test that the package is importable."""
import njab
assert njab.__version__

0 comments on commit d455956

Please sign in to comment.