Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit 8fd64ea

Browse files
RobPasMuegerma89
andauthored
FEAT: pre-release quick tech review (#18)
* FEAT: Align contributors to commits in repo * FEAT: Workflow cleanup * Allowing smoke tests when pushing to main. * FIX: remove timeout * removing style * removing timeout too * FIX: No need to dive inside tests folder * FEAT: additional pre-commit hooks * FEAT: Adding CONTRIBUTING * FEAT: dependabot * MAINT: stop concurrent workflows * DOCS: minor edits * Rename API.rst to api.rst * MAINT: tool value alignments (line-length) * MAINT: pyproject.toml values * FIX: reduce dependabot frequency * FIX: refer to single version value --------- Co-authored-by: German <[email protected]>
1 parent ed55fe9 commit 8fd64ea

File tree

15 files changed

+96
-57
lines changed

15 files changed

+96
-57
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ updates:
33
- package-ecosystem: "pip"
44
directory: "/"
55
schedule:
6-
interval: "daily"
7-
versioning-strategy: "lockfile-only"
6+
interval: "weekly"
7+
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+

.github/workflows/approver.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Approve PRs
22
on:
33
workflow_dispatch:
4-
issue_comment:
4+
issue_comment:
55
types: [created, edited]
66

77
jobs:

.github/workflows/ci_cd.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,22 @@ env:
1515
PACKAGE_NAMESPACE: 'ansys.tools.path'
1616
DOCUMENTATION_CNAME: 'path.tools.docs.pyansys.com'
1717

18-
jobs:
19-
style:
20-
name: Code style
21-
runs-on: ubuntu-latest
22-
steps:
23-
- name: PyAnsys code style checks
24-
uses: pyansys/actions/code-style@v4
25-
with:
26-
python-version: ${{ env.MAIN_PYTHON_VERSION }}
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
2722

23+
jobs:
2824
smoke-tests:
2925
name: "Build and smoke tests"
3026
runs-on: ${{ matrix.os }}
31-
needs: [style]
32-
if: github.ref != 'refs/heads/main'
33-
timeout-minutes: 20
3427
strategy:
3528
fail-fast: false
3629
matrix:
3730
os: [ubuntu-latest, windows-latest, macos-latest]
3831
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
3932
# Only perform wheelhouse builds for macOS when releasing
40-
should-release:
33+
should-release:
4134
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
4235
exclude:
4336
- should-release: false
@@ -50,12 +43,11 @@ jobs:
5043
library-namespace: ${{ env.PACKAGE_NAMESPACE }}
5144
operating-system: ${{ matrix.os }}
5245
python-version: ${{ matrix.python-version }}
53-
46+
5447
build-tests:
5548
name: Build and Testing
5649
runs-on: ubuntu-latest
5750
needs: [smoke-tests]
58-
timeout-minutes: 20
5951
container:
6052
image: ghcr.io/pyansys/mapdl:v22.2-ubuntu
6153
options: "-u=0:0 --entrypoint /bin/bash"
@@ -78,7 +70,6 @@ jobs:
7870

7971
- name: Unit testing
8072
run: |
81-
cd tests # so we're testing the install, not local
8273
python -m pytest -vx --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html
8374
8475
- name: Upload coverage reports to Codecov
@@ -87,7 +78,7 @@ jobs:
8778
files: .cov/coverage.xml
8879

8980
docs-style:
90-
name: PyAnsys documentation style check using Vale
81+
name: Documentation style check
9182
runs-on: ubuntu-latest
9283
steps:
9384
- name: PyAnsys documentation style checks

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ repos:
3131
hooks:
3232
- id: check-merge-conflict
3333
- id: debug-statements
34+
- id: check-yaml
35+
- id: trailing-whitespace
3436

3537
# this validates our github workflow files
3638
- repo: https://github.com/python-jsonschema/check-jsonschema

AUTHORS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22

33
## Project Lead
44

5-
* [German Martinez Ayuso](https://github.com/germa89)
5+
* [German Martinez Ayuso](https://github.com/germa89)
6+
7+
## Contributors
8+
9+
* [Roberto Pastor Muela](https://github.com/RobPasMue)

CONTRIBUTING.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1-
# Contributing
1+
# Contributing
22

3+
We absolutely welcome any code contributions and we hope that this
4+
guide will facilitate an understanding of the ``ansys-tools-path`` code
5+
repository. It is important to note that while the ``ansys-tools-path`` software
6+
package is maintained by ANSYS and any submissions will be reviewed
7+
thoroughly before merging, we still seek to foster a community that can
8+
support user questions and develop new features to make this software
9+
a useful tool for all users. As such, we welcome and encourage any
10+
questions or submissions to this repository.
11+
12+
For contributing to this project, please refer to the [PyAnsys Developer's Guide].
13+
Further information about contributing to ``ansys-tools-path`` can be found in [Contributing].
14+
15+
[PyAnsys Developer's Guide]: https://dev.docs.pyansys.com/index.html
16+
[Contributing]: https://path.tools.docs.pyansys.com/dev/contributing.html

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ You need to follow these steps:
104104
#. Install the project in editable mode:
105105

106106
.. code:: bash
107-
107+
108108
python -m pip install --editable ansys-tools-path
109109
110110

doc/make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if errorlevel 9009 (
3030
goto end
3131

3232
:clean
33-
rmdir /s /q %BUILDDIR% > /NUL 2>&1
33+
rmdir /s /q %BUILDDIR% > /NUL 2>&1
3434
for /d /r %SOURCEDIR% %%d in (_autosummary) do @if exist "%%d" rmdir /s /q "%%d"
3535
goto end
3636

doc/source/_templates/sidebar-nav-bs.html

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _ref_api:
22

33
API
4-
========
4+
===
55

66
.. currentmodule:: ansys.tools.path
77

@@ -11,4 +11,4 @@ API
1111
find_ansys
1212
get_available_ansys_installations
1313
change_default_ansys_path
14-
save_ansys_path
14+
save_ansys_path

0 commit comments

Comments
 (0)