Skip to content

Commit

Permalink
Make it work with act
Browse files Browse the repository at this point in the history
act -W .github/workflows/ci.yml -j checks --matrix python-version:3.11

NOTE: Python 3.12 build fails on a datetime/TZ issue.

| OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k
| ImportError while loading conftest '/Users/mrakitin/src/NSLS-II/SRX/srx-caproto-iocs/tests/conftest.py'.
| tests/conftest.py:13: in <module>
|     from srx_caproto_iocs.base import OphydDeviceWithCaprotoIOC
| /opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/site-packages/srx_caproto_iocs/base.py:11: in <module>
|     from caproto import ChannelType
| /opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/site-packages/caproto/__init__.py:2: in <module>
|     from ._utils import *
| /opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/site-packages/caproto/_utils.py:29: in <module>
|     from ._dbr import SubscriptionType
| /opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/site-packages/caproto/_dbr.py:17: in <module>
|     from ._constants import (EPICS2UNIX_EPOCH, EPICS_EPOCH, MAX_ENUM_STATES,
| /opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/site-packages/caproto/_constants.py:11: in <module>
|     EPICS_EPOCH = datetime.datetime.utcfromtimestamp(EPICS2UNIX_EPOCH)
| E   DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
  • Loading branch information
mrakitin committed Feb 15, 2024
1 parent 42f073b commit d78df6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ classifiers = [
]
dynamic = ["version"]
dependencies = [
"caproto[complete]",
"caproto",
"h5py",
"numpy",
"ophyd",
Expand All @@ -40,6 +40,7 @@ dependencies = [

[project.optional-dependencies]
test = [
"netifaces",
"pytest >=6",
"pytest-cov >=3",
]
Expand Down

0 comments on commit d78df6f

Please sign in to comment.