Free Motion Capture for Everyone πβ¨
TypeScript
Test across versions with nox (#429)
philipqueen9df7e3ffe0d0
diff --git a/.github/workflows/nox-testing.yml b/.github/workflows/nox-testing.ymlnew file mode 100755index 00000000..58a99eec--- /dev/null+++ b/.github/workflows/nox-testing.yml@@ -0,0 +1,25 @@+name: Nox Tests++on:+ workflow_dispatch:+ pull_request:+ branches: [ main ]+ paths:+ - 'pyproject.toml'++jobs:+ build:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v3+ - name: Set up Python 3.x+ uses: wntrblm/[email protected]+ with:+ python-versions: "3.8, 3.9, 3.10, 3.11"+ - name: Install libegl1+ run: |+ sudo apt-get update+ sudo apt-get install libegl1-mesa+ - name: Run noxfile+ run: |+ noxdiff --git a/noxfile.py b/noxfile.pynew file mode 100644index 00000000..6e1cd6eb--- /dev/null+++ b/noxfile.py@@ -0,0 +1,14 @@+import nox+from nox.sessions import Session+[email protected](python=["3.8","3.9", "3.10", "3.11"])+def test(session: Session):+ """Run the full test suite on python versions 3.8, 3.9, 3.10, 3.11."""+ session.install("-e", ".")+ session.run("pytest", "freemocap/tests")+[email protected](python="3.11")+def coverage(session: Session):+ """Run a coverage test on python 3.11."""+ session.install("-e", ".[dev]")+ session.run("pytest", "--cov=freemocap", "freemocap/tests")\ No newline at end of filediff --git a/pyproject.toml b/pyproject.tomlindex 98556de6..b4ca4cf5 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -85,7 +85,7 @@ requires-python = ">=3.8"dynamic = ["version", "description"][project.optional-dependencies]-dev = ["black", "bumpver", "isort", "pip-tools", "pytest", "flit"]+dev = ["black", "bumpver", "isort", "pip-tools", "pytest", "pytest-cov", "flit"][project.urls]Homepage = "https://freemocap.org"@@ -121,4 +121,4 @@ setup = "pre-commit install"#test = "python -m unittest freemocap/tests/**/test_*"installer = "./bin/installer.sh"# This command ensures that your code is formatted appropriately-format = "black freemocap"\ No newline at end of file+format = "black freemocap"