diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ede62bb..4c09d78 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,10 @@ jobs: matrix: os: - ubuntu-20.04 - python-version: [ 3.5.4, 3.5.10, 3.6.7, 3.6.10, 3.6.14, 3.7.5, 3.7.11, 3.8.0, 3.8.5, 3.9.0, 3.9.6] + python-version: + - "3.8" + - "3.9" + - "3.10" steps: - uses: actions/checkout@v3 @@ -34,21 +37,3 @@ jobs: - name: Run tests run: coverage run --source=vwo setup.py test - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - with: - fail_ci_if_error: true - - - name: Notification - if: always() - id: slack - uses: wingify/slack-github-action@v1.15.1-wingify - with: - channel-id: 'fs-review-team' - slack-message: " Test on *Python-${{ matrix.python-version }}* and *${{ matrix.os }}* got *${{job.status}}* ${{job.status == 'success' && ':heavy_check_mark:' || ':x:'}} \nCommit: `${{github.event.head_commit.message}}`. \nCheck the latest build: https://github.com/wingify/vwo-python-sdk/actions" - color: "${{job.status == 'success' && '#00FF00' || '#FF0000'}}" - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }} diff --git a/requirements.txt b/requirements.txt index 4d185b0..5d43928 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ pyrsistent>=0.16.1; python_version>="3.4" -jsonschema>=3.0.1,<4.0 +jsonschema>=4.1.2,<4.18 mmh3==2.5.1 requests[security]>=2.9.1 -redis==5.0.1 \ No newline at end of file +redis==5.0.1 diff --git a/tests/logger/test_VWOLogger.py b/tests/logger/test_VWOLogger.py index d264904..f1f156a 100644 --- a/tests/logger/test_VWOLogger.py +++ b/tests/logger/test_VWOLogger.py @@ -115,7 +115,10 @@ def test_getInstance_log_level_passed(self): def test_getInstance_logging_logger_passed(self): logger = VWOLogger.getInstance(logger=logging.getLogger()) self.assertIsInstance(logger, VWOLogger.VWOLogger) - self.assertIs(logger.logger.level, 30) # Default log level of logging.Logger is INFO, ie 30 + if sys.version_info >= (3, 10): + self.assertIs(logger.logger.level, 20) # In Python >=3.10, the default log level is 20 (INFO) + else: + self.assertIs(logger.logger.level, 30) # In Python <3.10, the default log level is 30 (WARNING) def test_getInstance_custom_logger_passed(self): class Logger: