From b485c9e6c3d827a9abe1f0f1ab95e981e5ff31aa Mon Sep 17 00:00:00 2001 From: athril Date: Wed, 24 Jan 2024 11:13:24 -0500 Subject: [PATCH] chore: removing commented lines --- .github/workflows/CI.yml | 8 +++++++- .github/workflows/black-action.yml | 1 + .github/workflows/release.yml | 15 ++------------- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 4db71e7..deda39b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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: @@ -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 diff --git a/.github/workflows/black-action.yml b/.github/workflows/black-action.yml index 704a312..5587317 100644 --- a/.github/workflows/black-action.yml +++ b/.github/workflows/black-action.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d358122..55760a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 @@ -82,19 +82,8 @@ jobs: python -m pip install -U pip build python -m build -# - name: Publish Distribution to TestPyPI -# uses: pypa/gh-action-pypi-publish@v1.5.0 -# 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/release-action@v1.13.0