Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test-suite.yml to capture all failures for fix. #178

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
261692e
Update test-suite.yml to capture all failures for fix.
axmsoftware Feb 3, 2025
9299668
Update test-suite.yml
axmsoftware Feb 3, 2025
3aff122
Update test-suite.yml
axmsoftware Feb 3, 2025
a38c35b
Update test-suite.yml - fix import error
axmsoftware Feb 3, 2025
f4b77db
Update test-suite.yml just 3.9 with fixed import
axmsoftware Feb 3, 2025
538c64b
Update test-suite.yml
axmsoftware Feb 3, 2025
d55e7a1
Update test-suite.yml
axmsoftware Feb 3, 2025
d5b966f
Update test-suite.yml -3.12 only
axmsoftware Feb 3, 2025
c50b5fe
Update test-suite.yml - 3.13 only
axmsoftware Feb 3, 2025
4d8336c
Update test-suite.yml - add libxml2
axmsoftware Feb 3, 2025
4ca8804
Update test-suite.yml - added libxslt
axmsoftware Feb 3, 2025
7634480
Update test-suite.yml- only lxml
axmsoftware Feb 3, 2025
c0e750b
Update test-suite.yml - lxml-4.9.2
axmsoftware Feb 3, 2025
0ccde6c
Update test-suite.yml lxml 4.9.2
axmsoftware Feb 3, 2025
b15fa67
Update test-suite.yml - libxslt-dev
axmsoftware Feb 3, 2025
581cce8
Update test-suite.yml - apt-get for libxslt-dev
axmsoftware Feb 3, 2025
658a604
Update test-suite.yml - sudo apt-get
axmsoftware Feb 3, 2025
4b21d5a
Update test-suite.yml -lxml 5.0
axmsoftware Feb 3, 2025
109d529
Update test-suite.yml -non dev
axmsoftware Feb 3, 2025
25956fe
Update test-suite.yml dev only
axmsoftware Feb 3, 2025
5bb69a6
Update test-suite.yml
axmsoftware Feb 3, 2025
f83e69c
Update test-suite.yml lxml==5.3.0
axmsoftware Feb 3, 2025
74e1299
Update test-suite.yml
axmsoftware Feb 3, 2025
858bff7
Update test-suite.yml - 3.10, 3.11, 3.12
axmsoftware Feb 3, 2025
2474987
Update test-suite.yml 3.9, 3.11, 3.12
axmsoftware Feb 3, 2025
129b18d
Update test-suite.yml add 3.10
axmsoftware Feb 3, 2025
1e3aea3
Update test-suite.yml commented out sudo apt-get
axmsoftware Feb 3, 2025
68fc67d
Update test-suite.yml reset to pytest==8.3.3
axmsoftware Feb 3, 2025
4649c04
Update test-suite.yml - troubleshoot pytest hang
axmsoftware Feb 3, 2025
95d73f0
Update test-suite.yml added pytest --timeout 30
axmsoftware Feb 3, 2025
224fbed
Update test-suite.yml
axmsoftware Feb 3, 2025
29da458
Update test-suite.yml pytest 7.4
axmsoftware Feb 3, 2025
81219b5
Update test-suite.yml - reset to latest pytest
axmsoftware Feb 3, 2025
1fea023
Revert Pull Request 170#
Feb 3, 2025
17d81c0
Merge remote-tracking branch 'refs/remotes/origin/axmsoftware-patch-1…
Feb 3, 2025
55efb63
Update test-suite.yml - 3.9 test
axmsoftware Feb 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
#python-version: [3.7, 3.8, 3.9]
python-version: [3.9]
#python-version: ["3.10", 3.11, 3.12]

steps:
- uses: actions/checkout@v2
Expand All @@ -25,9 +27,13 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Need for python3.13: sudo apt-get install libxml2-dev libxslt-dev
# sudo apt-get install libxml2-dev libxslt-dev
python -m pip install --upgrade pip
pip install .
pip install flake8 pytest
# Need for python 3.13 lxml 5.3.0
# pip install lxml==5.3.0
pip install flake8 pytest pyOpenSSL==24.2.1 async-timeout==4.0.3
if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; fi
- name: Lint with flake8
run: |
Expand All @@ -37,4 +43,4 @@ jobs:
flake8 openleadr/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest -vv test/
pytest -vv -o faulthandler_timeout=30 test/
5 changes: 2 additions & 3 deletions openleadr/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1252,12 +1252,11 @@ async def _event_cleanup(self):
"""
Periodic task that will clean up completed and cancelled events in our memory.
"""
for i in range(len(self.received_events)-1, -1, -1):
event = self.received_events[i]
for event in self.received_events:
if event['event_descriptor']['event_status'] == 'cancelled' or \
utils.determine_event_status(event['active_period']) == 'completed':
logger.info(f"Removing event {event} because it is no longer relevant.")
self.received_events.pop(i)
self.received_events.pop(self.received_events.index(event))

async def _poll(self):
logger.debug("Now polling for new messages")
Expand Down
Loading