diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 5532a15..00997c4 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -16,6 +16,7 @@ jobs: - '3.9' - '3.10' - '3.11' + - '3.12' name: Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v3 @@ -27,11 +28,12 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest-cov codecov - python setup.py develop easy_install "catmux[test]" + pip install pytest-cov codecov coverage + pip install -e .[test] - name: Test with pytest run: | - pytest --cov=catmux --cov-report=xml . + coverage run --source=catmux -m pytest && coverage report + coverage xml -o coverage.xml - name: Run example run: | catmux_create_session -d catmux/resources/example_session.yaml diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml index 3436670..e9a4b27 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -16,6 +16,7 @@ jobs: - '3.9' - '3.10' - '3.11' + - '3.12' name: Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v3 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..68847bb --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools >= 61.0"] +build-backend = "setuptools.build_meta"