From 4a12eecb8fe9255090ebe4baed8d144ba05d62ac Mon Sep 17 00:00:00 2001 From: "Felix Exner (fexner)" Date: Wed, 22 May 2024 17:21:46 +0200 Subject: [PATCH] Add pythoon 3.12 as supported version (#39) * Add pythoon 3.12 as supported version * Add pyproject.toml * [coverage]: Use pip to install package --- .github/workflows/coverage.yaml | 8 +++++--- .github/workflows/package.yaml | 1 + pyproject.toml | 3 +++ 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 pyproject.toml 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"