Skip to content

Commit

Permalink
Update GitHub Actions workflow and fix project URL in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dxns-hub committed Dec 5, 2024
1 parent 619cd44 commit 0cdd3e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/python-tests-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,32 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
continue-on-error: true

- name: Install test dependencies
run: |
pip install pytest pytest-cov
continue-on-error: true

- name: Run tests
run: |
pytest tests/ --cov=src/ --cov-report=xml
continue-on-error: true

- name: Upload coverage report
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false

- name: Check for test failures
run: |
if [ ${{ job.status }} == 'failure' ]; then
echo "Tests failed. Please check the logs for more information."
exit 1
fi

publish:
needs: test
Expand All @@ -65,12 +55,12 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
description='Vibrational and Power Optimizing Software',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url='https://github.com/yourusername/vapos',
url='https://github.com/dxns-hub/vapos',
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
Expand Down

0 comments on commit 0cdd3e6

Please sign in to comment.