Debian Codegraph @

.github/workflows/test-smoketests.yml

raw symbols SCIP
1 name: smoketests
2
3 on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8 workflow_dispatch: # manual execution
9
10 jobs:
11 smoketests:
12 runs-on: ${{ matrix.os }}
13 timeout-minutes: 15
14 strategy:
15 matrix:
16 os: [ ubuntu-latest, macos-13 ] # disabling windows-latest for now
17 python: [ '3.9', '3.10', '3.11', '3.12', '3.13']
18
19 steps:
20 - uses: actions/checkout@v4
21
22 - name: Set up Python
23 uses: actions/setup-python@v5
24 with:
25 python-version: ${{ matrix.python }}
26
27 - name: Work around arm64 support on MacOS
28 # https://github.com/actions/virtual-environments/issues/2557
29 if: matrix.os == 'macos-latest'
30 run: sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
31
32 - name: Install dependencies
33 run: |
34 python -m pip install --upgrade pip
35 python -m pip install -r requirements.txt
36 python -m pip install numpy
37
38 - name: Build scalene
39 run: pip -v install -e .
40
41 - name: cpu-only smoke test
42 run: python test/smoketest.py test/testme.py --cpu-only
43
44 - name: multiprocessing smoke test
45 run: python test/smoketest.py test/multiprocessing_test.py
46
47 # Note: test/smoketest.py only handles single JSON, rather than multiple in sequence.
48 - name: profile-interval smoke test
49 run: python -m scalene --cli --profile-interval=2 test/testme.py
50
51 - name: decorator smoke test
52 run: python test/smoketest_profile_decorator.py
53
54 # FIXME: these tests are broken under the current Github runner
55 #
56 # - name: line invalidation test
57 # run: python test/smoketest_line_invalidation.py
58
59 # Note: This test doesn't need to read an output,
60 # it is meant to determine if there is an ImportError
61 # or anything related if relative imports are used.
62 - name: -m invocation smoketest
63 run: |
64 python -m pip install git+https://github.com/sternj/import_stress_test
65 python -m scalene --cli --- -m import_stress_test