|
30 | 30 | echo "python_versions=$(python ./versions.py -mode range $MIN_PYTHON $MAX_PYTHON)" >> $GITHUB_OUTPUT |
31 | 31 | echo "min_python_version=\"$MIN_PYTHON\"" >> $GITHUB_OUTPUT |
32 | 32 | shell: bash |
33 | | - minimum-version-testing: |
34 | | - needs: generate_python_matrix |
35 | | - runs-on: ${{ matrix.os }} |
36 | | - strategy: |
37 | | - matrix: |
38 | | - os: [ubuntu-latest, macos-latest, windows-latest] |
39 | | - steps: |
40 | | - - uses: actions/checkout@v4 |
41 | | - - name: Set Up Python |
42 | | - uses: actions/setup-python@v5 |
43 | | - with: |
44 | | - python-version: ${{ fromJSON(needs.generate_python_matrix.outputs.min_python_version) }} |
45 | | - - name: Display Python Version |
46 | | - run: python -c "import sys; print(sys.version)" |
47 | | - shell: bash |
48 | | - - name: Upgrade Pip |
49 | | - run: python -m pip install --upgrade pip |
50 | | - shell: bash |
51 | | - - name: Generate Minimum Requirements File |
52 | | - run: sed 's/>/=/g' requirements.txt | sed 's/$/\.*/g' > requirements.min.txt |
53 | | - shell: bash |
54 | | - - name: Install Minimum Requirements |
55 | | - run: python -m pip install --upgrade -r requirements.min.txt |
56 | | - shell: bash |
57 | | - - name: Install STUMPY And Other Dependencies |
58 | | - run: python -m pip install --editable .[ci] |
59 | | - shell: bash |
60 | | - - name: Run Black |
61 | | - run: black --check --diff ./ |
62 | | - shell: bash |
63 | | - - name: Run Flake8 |
64 | | - run: flake8 ./ |
65 | | - shell: bash |
66 | | - - name: Install and Link OpenMP |
67 | | - run: | |
68 | | - if [ "$RUNNER_OS" == "macOS" ]; then |
69 | | - echo "Installing OpenMP" |
70 | | - brew install libomp |
71 | | - echo "Linking OpenMP" |
72 | | - brew link --force libomp |
73 | | - echo "Find OpenMP Linking Location" |
74 | | - libfile=`brew list libomp --verbose | grep libomp.dylib` |
75 | | - echo $libfile |
76 | | - echo "Changing @rpath for the omppool.cpython-x-darwin.so shared object to look in $libfile" |
77 | | - ls "$(python -c 'import site; print(site.getsitepackages()[0])')"/numba/np/ufunc/omppool.*.so | xargs install_name_tool -change @rpath/libomp.dylib $libfile |
78 | | - fi |
79 | | - shell: bash |
80 | | - - name: Show Full Numba Environment |
81 | | - run: python -m numba -s |
82 | | - shell: bash |
83 | | - - name: Run Unit Tests |
84 | | - run: ./test.sh unit |
85 | | - shell: bash |
86 | 33 | unit-testing: |
87 | 34 | needs: generate_python_matrix |
88 | 35 | runs-on: ${{ matrix.os }} |
|
0 commit comments