Skip to content

Commit

Permalink
Fix license classifier (#66)
Browse files Browse the repository at this point in the history
* Fix license classifier

* Run coverage only once

* Update python-ci.yml
  • Loading branch information
z4kn4fein authored Aug 8, 2024
1 parent ecda5e6 commit 01f0386
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ on:

jobs:
test:

runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 01f0386

Please sign in to comment.