Skip to content

Commit

Permalink
MacOs test
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja committed Jan 23, 2025
1 parent 6f20ccf commit e996b06
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,14 @@ jobs:
- name: List test
run: python -m avocado --verbose list selftests/unit/* selftests/functional/* selftests/*sh
- name: Run a subset of avocado's selftests
run: python -m avocado --show avocado run -- selftests/functional/basic.py:RunnerOperationTest.test_store_logging_stream_external
run: python -m avocado run --job-timeout=300 examples/tests/external_logging_stream.py
- name: Save logs
uses: actions/upload-artifact@v4
if: always()
with:
name: Test_logs
path: /Users/runner/avocado/job-results/latest/
retention-days: 1
- run: echo "🥑 This job's status is ${{ job.status }}."


Expand Down
3 changes: 3 additions & 0 deletions examples/tests/external_logging_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

class MatplotlibTest(Test):
def test(self):
"""
:avocado: dependency={"type": "pip", "action": "install", "name": "matplotlib"}
"""
_, ax = plt.subplots()

fruits = ["apple", "blueberry", "cherry", "orange"]
Expand Down
1 change: 1 addition & 0 deletions selftests/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,7 @@ def main(args): # pylint: disable=W0621
config = {
"run.job_category": "avocado-selftests",
"job.output.testlogs.statuses": ["FAIL", "ERROR", "INTERRUPT"],
"job.run.timeout": 650
}

# Workaround for travis problem on arm64 - https://github.com/avocado-framework/avocado/issues/4768
Expand Down

0 comments on commit e996b06

Please sign in to comment.