diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index cc9414f..cfef50d 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -14,7 +14,6 @@ on: jobs: test: - runs-on: ${{ matrix.os }} strategy: matrix: @@ -58,7 +57,32 @@ jobs: flake8 configcatclient --count --show-source --statistics - name: Test - run: pytest --cov=configcatclient configcatclienttests + run: pytest configcatclienttests + + + coverage: + needs: [ test ] + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest pytest-cov parameterized mock flake8 + pip install -r requirements.txt + + - name: Lint with flake8 + run: | + # Statical analysis + flake8 configcatclient --count --show-source --statistics + + - name: Run coverage + run: pytest --cov=configcatclient configcatclienttests - - name: Upload coverage report - uses: codecov/codecov-action@v3 + - name: Upload coverage report + uses: codecov/codecov-action@v3 diff --git a/setup.py b/setup.py index 6e03564..fa74798 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ def parse_requirements(filename): install_requires=requirements, classifiers=[ 'Intended Audience :: Developers', - 'License :: OSI Approved :: Apache Software License', + 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.5',