diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 9cde58ce325..d61ff2f33de 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -26,12 +26,12 @@ jobs: uses: actions/checkout@v2 with: ref: ${{ inputs.branch }} - + - name: Set up Python 3.8 uses: actions/setup-python@v2 with: python-version: 3.8 - + - name: Install dependencies run: | python -m pip install --upgrade pip @@ -40,7 +40,7 @@ jobs: - name: Run unit tests run: | pytest --cov=src/ tests/unit --cov-report=xml --alluredir=allure-results - + - name: Get Allure history uses: actions/checkout@v2 if: always() @@ -57,12 +57,12 @@ jobs: github-key: ${{ secrets.GITHUB_TOKEN }} - name: Upload coverage report - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 continue-on-error: true with: name: pytest-coverage-report path: coverage.xml - + - name: Extract coverage percent id: coverage if: github.event_name == 'push' @@ -74,7 +74,7 @@ jobs: colour=$(if [ $percentage_whole -ge 80 ]; then echo "green"; else echo "orange"; fi) echo "colour=$colour" >> $GITHUB_OUTPUT echo "covered=$percentage_whole" >> $GITHUB_OUTPUT - + - name: Create Coverage Badge uses: schneegans/dynamic-badges-action@v1.2.0 if: github.event_name == 'push' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c2f0e784595..461076b6442 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,9 +6,11 @@ repos: - id: check-merge-conflict - repo: https://github.com/asottile/setup-cfg-fmt - rev: v1.17.0 + rev: v2.5.0 hooks: - id: setup-cfg-fmt + args: + - --include-version-classifiers - repo: https://github.com/myint/autoflake rev: v1.4 diff --git a/setup.cfg b/setup.cfg index 08b278955b3..715ab9da719 100755 --- a/setup.cfg +++ b/setup.cfg @@ -8,7 +8,7 @@ url = https://github.com/firebolt-db/firebolt-sdk author = Firebolt author_email = support@firebolt.io license = Apache-2.0 -license_file = LICENSE +license_files = LICENSE classifiers = License :: OSI Approved :: Apache Software License Operating System :: OS Independent @@ -16,6 +16,9 @@ classifiers = Programming Language :: Python :: 3 :: Only Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 project_urls = Bug Tracker = https://github.com/firebolt-db/firebolt-sdk/issues @@ -51,7 +54,7 @@ dev = allure-pytest==2.* devtools==0.7.0 mypy==1.*,<1.10.0 - pre-commit==2.15.0 + pre-commit==3.5.0 pyfakefs>=4.5.3 pytest==7.2.0 pytest-cov==3.0.0