Skip to content

Commit 59f6bb1

Browse files
authored
CI Pipeline Fixes (#107)
1 parent 7c6d349 commit 59f6bb1

File tree

9 files changed

+25
-21
lines changed

9 files changed

+25
-21
lines changed

.github/workflows/documentation.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@main
1717
- name: Set up Python
18-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@main
1919
with:
2020
python-version: '3.10'
2121
- name: Setup Linux Environment
@@ -59,7 +59,7 @@ jobs:
5959
cd -
6060
6161
- name: Upload artifact
62-
uses: actions/upload-artifact@v3
62+
uses: actions/upload-artifact@main
6363
with:
6464
name: microstructpy_${{ matrix.doc-type }}_documentation
6565
path: ${{ env.art_path }}

.github/workflows/ossar-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
# Checkout your code repository to scan
1818
- name: Checkout repository
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@main
2020
with:
2121
# We must fetch at least the immediate parents so that if this is
2222
# a pull request then we can checkout the head.
@@ -29,17 +29,17 @@ jobs:
2929

3030
# Install dotnet, used by OSSAR
3131
- name: Install .NET
32-
uses: actions/setup-dotnet@v1
32+
uses: actions/setup-dotnet@main
3333
with:
3434
dotnet-version: '6.0.x'
3535

3636
# Run open source static analysis tools
3737
- name: Run OSSAR
38-
uses: github/ossar-action@v1
38+
uses: github/ossar-action@main
3939
id: ossar
4040

4141
# Upload results to the Security tab
4242
- name: Upload OSSAR results
43-
uses: github/codeql-action/upload-sarif@v1
43+
uses: github/codeql-action/upload-sarif@main
4444
with:
4545
sarif_file: ${{ steps.ossar.outputs.sarifFile }}

.github/workflows/python_package.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
matrix:
12-
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
12+
python-version: [3.9, '3.10', '3.11', '3.12']
1313
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@main
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@main
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121

@@ -30,7 +30,7 @@ jobs:
3030
run: |
3131
python -m pip install --upgrade pip
3232
pip install setuptools wheel
33-
pip install flake8 pytest pytest-cov coveralls
33+
pip install flake8 pytest==6.2.5 pytest-cov coveralls
3434
- name: Install package requirements
3535
run: pip install -r requirements.txt
3636
- name: Install package
@@ -56,13 +56,13 @@ jobs:
5656

5757
runs-on: ubuntu-latest
5858
steps:
59-
- uses: actions/checkout@v3
59+
- uses: actions/checkout@main
6060
- name: Set up Python
61-
uses: actions/setup-python@v4
61+
uses: actions/setup-python@main
6262
with:
6363
python-version: '3.x'
6464
- name: Cache pip
65-
uses: actions/cache@v3
65+
uses: actions/cache@main
6666
with:
6767
# This path is specific to Ubuntu
6868
path: ~/.cache/pip

docs/requirements.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ gmsh==4.11.1
22
matplotlib>=3.7.3
33
numpy>=1.24.4
44
pybind11==2.4.3
5-
setuptools>=65.5.1
6-
sphinx==4.2.0
5+
requests>=2.32.0 # not directly required, pinned by Snyk to avoid a vulnerability
6+
setuptools>=70.0.0
7+
sphinx==5.3.0
78
sphinx-gallery==0.8.1
9+
urllib3>=2.2.2 # not directly required, pinned by Snyk to avoid a vulnerability
10+
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability

docs/source/api/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ API
44
===
55

66
.. toctree::
7+
:maxdepth: 2
78

89
cli
910
geometry/index

requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ matplotlib>=3.7.3
33
pybind11==2.4.3
44
pygmsh==7.1.17
55
MeshPy==2022.1.3
6-
numpy>=1.24.4
6+
numpy>=1.24.4,<2.0
77
pyquaternion==0.9.5
88
pyvoro-mmalahe==1.3.4
99
scipy>=1.10.1
10-
setuptools>=65.5.1
10+
setuptools>=70.0.0
1111
xmltodict==0.12.0
1212
tox==3.14.0
1313
lsq-ellipse==2.0.1
14+
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def find_version(*fname):
5757
'Operating System :: MacOS :: MacOS X',
5858
'Operating System :: Microsoft :: Windows',
5959
'Operating System :: POSIX :: Linux',
60-
'Programming Language :: Python :: 3.8',
6160
'Programming Language :: Python :: 3.9',
6261
'Programming Language :: Python :: 3.10',
6362
'Programming Language :: Python :: 3.11',

src/microstructpy/examples/grain_neighborhoods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
dx = np.insert(np.diff(x_perim), 0, 0)
4545
dy = np.insert(np.diff(y_perim), 0, 0)
4646
ds = np.sqrt(dx * dx + dy * dy)
47-
arc_len = scipy.integrate.cumtrapz(ds, x=t_perim, initial=0)
47+
arc_len = scipy.integrate.cumulative_trapezoid(ds, x=t_perim, initial=0)
4848
eq_spaced = arc_len[-1] * np.arange(n) / n
4949
x_pts = np.interp(eq_spaced, arc_len, x_perim)
5050
y_pts = np.interp(eq_spaced, arc_len, y_perim)

src/microstructpy/geometry/ellipse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def best_fit(self, points):
182182
points (list or numpy.ndarray): An Nx2 list of points to fit.
183183
184184
Returns:
185-
.Ellipse: An instance of the class that best fits the points.
185+
Ellipse: An instance of the class that best fits the points.
186186
187187
.. _`least-squares-ellipse-fitting`: https://github.com/bdhammel/least-squares-ellipse-fitting
188188

0 commit comments

Comments
 (0)