Skip to content

Commit

Permalink
chore: removing commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
athril committed Jan 24, 2024
1 parent 37431b4 commit b485c9e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Setup OpenGL
run: |
sudo apt-get install libopengl0 libglu1-mesa
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[test]'
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Generate coverage report
run: |
PYTHONPATH=src
pytest --cov=./src tests/ --cov-report term --cov-report=xml:coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand All @@ -51,7 +57,7 @@ jobs:
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
# token: ${{ secrets.CODECOV_TOKEN }}

- name: Check if the package builds
run: |
python -m pip install -U pip build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/black-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
id: action_black
with:
black_args: "."

- name: Annotate diff changes using reviewdog
if: steps.action_black.outputs.is_formatted == 'true'
uses: reviewdog/action-suggester@v1
Expand Down
15 changes: 2 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
check:
needs: verify
uses: ./.github/workflows/CI.yml
# if: steps.checkUser.outputs.check-result == 'true'

publish:
needs: check
runs-on: ubuntu-latest
Expand All @@ -35,7 +35,7 @@ jobs:
name: pypi
url: https://pypi.org/p/sparc.client
permissions:
# # IMPORTANT: this permission is mandatory for trusted publishing on PyPI
# IMPORTANT: this permission is mandatory for trusted publishing on PyPI
id-token: write
contents: write
packages: write
Expand Down Expand Up @@ -82,19 +82,8 @@ jobs:
python -m pip install -U pip build
python -m build
# - name: Publish Distribution to TestPyPI
# uses: pypa/[email protected]
# with:
# user: __token__
# password: ${{ secrets.TEST_PYPI_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
# skip_existing: true

- name: Publish Distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# with: #not needed with new PyPI publishing
# user: __token__
# password: ${{ secrets.PYPI_TOKEN }}

- name: Create Release
uses: ncipollo/[email protected]
Expand Down

0 comments on commit b485c9e

Please sign in to comment.