Skip to content

Commit

Permalink
fix: install required dependencies in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpbeing committed Dec 24, 2023
1 parent 95040c3 commit 454e255
Show file tree
Hide file tree
Showing 3 changed files with 154 additions and 142 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ jobs:
python-version: ["3.10"]
fail-fast: false
steps:
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
- uses: actions/checkout@v3
- name: Generate test requirements
run: mkdir requirements && pdm export -G test --no-default -o requirements/requirements_tests.txt
- uses: ansys/actions/tests-pytest@v5
with:
pytest-extra-args: "--cov=ansys --cov-report=term --cov-report=html:.cov/html"
Expand All @@ -68,10 +73,17 @@ jobs:
runs-on: ubuntu-latest
needs: [doc-style]
steps:
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
- uses: actions/checkout@v3
- name: Generate doc requirements
run: pdm export -G doc --no-default -o doc_requirements.txt
- uses: ansys/actions/doc-build@v5
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
checkout: false
check-links: false
requirements-file: doc_requirements.txt

build-library:
name: "Build library basic example"
Expand Down
Loading

0 comments on commit 454e255

Please sign in to comment.