From fabe0b473e22971315a7d0dfd444a1468852ed6c Mon Sep 17 00:00:00 2001 From: gaogaotiantian Date: Sun, 24 Oct 2021 11:39:32 -0700 Subject: [PATCH] Update CI script and setup for 3.10 (#29) --- .github/workflows/build_test.yaml | 15 ++++----------- .github/workflows/lint.yaml | 2 +- setup.py | 5 +++-- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build_test.yaml b/.github/workflows/build_test.yaml index 8b4d556..32c96e1 100644 --- a/.github/workflows/build_test.yaml +++ b/.github/workflows/build_test.yaml @@ -13,7 +13,7 @@ jobs: build: strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: [3.6, 3.7, 3.8, 3.9, '3.10'] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} timeout-minutes: 30 @@ -23,13 +23,6 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install minimal nightly - uses: actions-rs/toolchain@v1 - with: - profile: minimal - default: true - override: true - toolchain: nightly-2020-09-14 - name: Install dependencies if: matrix.os != 'windows-latest' run: | @@ -64,12 +57,12 @@ jobs: python -m unittest - name: Generate coverage report run: | - coverage run --parallel-mode --pylib -m unittest + coverage run --source watchpoints --parallel-mode -m unittest coverage combine - coverage xml -i --include=*watchpoints* --omit=*tests* + coverage xml -i env: COVERAGE_RUN: True - name: Upload report to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v2 with: file: ./coverage.xml \ No newline at end of file diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 9907b3e..b35ebce 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -14,7 +14,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.9 - name: Install flake8 run: pip install flake8 - name: Run flake8 diff --git a/setup.py b/setup.py index c64b25c..e465392 100644 --- a/setup.py +++ b/setup.py @@ -26,17 +26,18 @@ packages=setuptools.find_packages("src"), package_dir={"":"src"}, classifiers=[ - "Development Status :: 3 - Alpha", + "Development Status :: 4 - Beta", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent" ], python_requires=">=3.6", install_requires = [ - "objprint>=0.0.3" + "objprint>=0.1.3" ] )