Skip to content

Commit

Permalink
[test][skip rtd] Test against Python 3.12 (backport #4871) (#4876)
Browse files Browse the repository at this point in the history
[test][skip rtd] Test against Python 3.12 (#4871)

* [test] Test against Python 3.12-dev

* Update tests.yml

* Remove numpy dependency because it can't be installed on Python 3.12 currently

* Update test_odb.py

(cherry picked from commit ccc6773)

Co-authored-by: Hailin Wang <[email protected]>
  • Loading branch information
mergify[bot] and haiiliin authored Aug 15, 2023
1 parent 0799e48 commit e947b1f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
cancel-in-progress: true

jobs:
pytest:
tox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -24,6 +24,8 @@ jobs:
3.9
3.10
3.11
3.12
allow-prereleases: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ dev = [
"crowdin-api-client",
"docformatter",
"flake8",
"numpy",
"pofmt",
"polib",
"pre-commit",
Expand Down
6 changes: 0 additions & 6 deletions tests/test_odb.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import numpy as np

import visualization
from abaqus import *
from abaqusConstants import *
Expand All @@ -19,7 +17,3 @@ def test_odb():
dataList = session.xyDataListFromField(
odb=odb, outputPosition=NODAL, variable=(("U", NODAL, ((COMPONENT, "U3"),)),), nodeSets=("INSTANCE.SET-TOP",)
)

data = np.array(dataList[0])
if data.size > 0:
np.savetxt("data.csv", data, header="time,U3", delimiter=",", comments="")
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{37,38,39,310,311}
envlist = py{37,38,39,310,311,312}

[testenv]
extras =
Expand Down

0 comments on commit e947b1f

Please sign in to comment.