Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate github actions to v8 #127

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
needs: [package, smoke-tests]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Release to the public PyPI repository
uses: ansys/actions/release-pypi-public@v8
Expand All @@ -164,6 +166,7 @@ jobs:
uses: ansys/actions/release-github@v8
with:
library-name: ${{ env.LIBRARY_NAME }}
token: ${{ secrets.GITHUB_TOKEN }}

upload_docs_dev:
name: "Deploy development documentation"
Expand All @@ -176,6 +179,8 @@ jobs:
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}

upload_docs_release:
name: "Deploy stable documentation"
Expand All @@ -189,3 +194,5 @@ jobs:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
python-version: ${{ env.MAIN_PYTHON_VERSION }}
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
3 changes: 2 additions & 1 deletion src/ansys/rocky/core/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
import requests
except ImportError:
raise ImportError(
"requests library is required to download examples data. Please install it with `pip install requests`"
"requests library is required to download examples data. "
"Please install it with 'pip install requests'"
)

logger = logging.getLogger("pyrocky.networking")
Expand Down
Loading