From ec42e4c5eb0156a8a06e8ded19a06744178ea7b1 Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Mon, 29 Jan 2024 12:17:03 +0100 Subject: [PATCH 1/3] Add pythoon 3.12 as supported version --- .github/workflows/coverage.yaml | 1 + .github/workflows/package.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 5532a15..f724f33 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 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 From 232fb28f2cb17d1a8c8de412aa1618771ea45e63 Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Wed, 22 May 2024 16:47:12 +0200 Subject: [PATCH 2/3] Add pyproject.toml --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 pyproject.toml 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" From 935186c46467f52109c478a22c43d9d414e25362 Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Wed, 22 May 2024 16:50:21 +0200 Subject: [PATCH 3/3] [coverage]: Use pip to install package --- .github/workflows/coverage.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index f724f33..00997c4 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -28,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