Skip to content

Commit 29a87e8

Browse files
authored
FEAT: uploading dependencies using pip freeze (#229)
* FEAT: pre-commit hooks * FEAT: upload dependencies as a list * WIP: attempt to upload all deps (dry-run) * FIX: Specifically providing artifact names * FEAT: removing dry run * FEAT: moving artifact (without .txt)
1 parent ffc1c09 commit 29a87e8

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

.github/workflows/ci-build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,18 @@ jobs:
113113
python-version: ${{ matrix.python-version }}
114114
target: "all"
115115

116+
- name: List dependencies (pip freeze)
117+
run: |
118+
pip freeze > all-deps-${{ runner.os }}-${{ matrix.python-version }}.txt
119+
cat all-deps-${{ runner.os }}-${{ matrix.python-version }}.txt
120+
121+
- name: Upload dependencies list
122+
uses: actions/upload-artifact@v3
123+
with:
124+
name: all-deps-${{ runner.os }}-${{ matrix.python-version }}
125+
path: all-deps-${{ runner.os }}-${{ matrix.python-version }}.txt
126+
retention-days: 7
127+
116128
docs-build:
117129
name: Building Documentation
118130
runs-on: ubuntu-latest
@@ -160,3 +172,4 @@ jobs:
160172
uses: pyansys/actions/release-github@v4
161173
with:
162174
library-name: ${{ env.PACKAGE_NAME }}
175+
additional-artifacts: 'all-deps-Linux-3.8 all-deps-Linux-3.9 all-deps-Linux-3.10 all-deps-Linux-3.11 all-deps-Windows-3.8 all-deps-Windows-3.9 all-deps-Windows-3.10 all-deps-Windows-3.11 all-deps-macOS-3.8 all-deps-macOS-3.9 all-deps-macOS-3.10 all-deps-macOS-3.11'

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ repos:
3333
hooks:
3434
- id: check-merge-conflict
3535
- id: debug-statements
36+
- id: check-yaml
37+
- id: trailing-whitespace
3638

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

doc/source/getting_started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Before installing ``pyansys`` in user mode, ensure that you have the latest
4747
version of `pip <https://pypi.org/project/pip/>`_ with:
4848

4949
.. code:: bash
50-
50+
5151
python -m pip install -U pip
5252
5353
Then, install ``pyansys`` with:

doc/source/links.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
.. _What_is_the_Windows_Subsystem_for_Linux: https://docs.microsoft.com/en-us/windows/wsl/about
6262
.. _open_port_windows_10: https://answers.microsoft.com/en-us/windows/forum/all/how-to-open-port-in-windows-10-firewall/f38f67c8-23e8-459d-9552-c1b94cca579a/
6363
.. _disabling_firewall_on_wsl: https://github.com/cascadium/wsl-windows-toolbar-launcher#firewall-rules
64-
.. _article_good_unit_test: https://stackoverflow.com/questions/61400/what-makes-a-good-unit-test
64+
.. _article_good_unit_test: https://stackoverflow.com/questions/61400/what-makes-a-good-unit-test
6565
.. _vscode_attach_to_container: https://code.visualstudio.com/docs/devcontainers/attach-container
6666
.. _ubuntu_firewall: https://ubuntu.com/server/docs/security-firewall
6767

0 commit comments

Comments
 (0)