diff --git a/.github/workflows/test-with-pip.yml b/.github/workflows/test-with-pip.yml new file mode 100644 index 00000000..6dbe224d --- /dev/null +++ b/.github/workflows/test-with-pip.yml @@ -0,0 +1,31 @@ +name: Test with pip + +on: +- pull_request +- workflow_dispatch + +jobs: + tests: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + python-version: ['3.6', '3.8', '3.10'] + + runs-on: ${{ matrix.os }} + + steps: + - name: Get apptools source + uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies and local packages + run: | + python -m pip install --upgrade pip + python -m pip install .[h5,preferences] + - name: Run tests + run: | + mkdir testdir + cd testdir + python -m unittest discover -v apptools diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..7e01ab27 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ['setuptools', 'wheel'] +build-backend = 'setuptools.build_meta'