Skip to content

Commit 4a12eec

Browse files
authored
Add pythoon 3.12 as supported version (#39)
* Add pythoon 3.12 as supported version * Add pyproject.toml * [coverage]: Use pip to install package
1 parent befb37e commit 4a12eec

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/coverage.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- '3.9'
1717
- '3.10'
1818
- '3.11'
19+
- '3.12'
1920
name: Python ${{ matrix.python-version }}
2021
steps:
2122
- uses: actions/checkout@v3
@@ -27,11 +28,12 @@ jobs:
2728
- name: Install dependencies
2829
run: |
2930
python -m pip install --upgrade pip
30-
pip install pytest-cov codecov
31-
python setup.py develop easy_install "catmux[test]"
31+
pip install pytest-cov codecov coverage
32+
pip install -e .[test]
3233
- name: Test with pytest
3334
run: |
34-
pytest --cov=catmux --cov-report=xml .
35+
coverage run --source=catmux -m pytest && coverage report
36+
coverage xml -o coverage.xml
3537
- name: Run example
3638
run: |
3739
catmux_create_session -d catmux/resources/example_session.yaml

.github/workflows/package.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- '3.9'
1717
- '3.10'
1818
- '3.11'
19+
- '3.12'
1920
name: Python ${{ matrix.python-version }}
2021
steps:
2122
- uses: actions/checkout@v3

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools >= 61.0"]
3+
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)