|
7 | 7 | - run_action
|
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - # run-tests-macos: |
11 |
| - # runs-on: ${{ matrix.os }} |
12 |
| - # strategy: |
13 |
| - # matrix: |
14 |
| - # os: [macos-latest] |
15 |
| - # python-version: ['3.9', '3.12', '3.13'] |
16 |
| - |
17 |
| - # steps: |
18 |
| - # - name: Check out repository |
19 |
| - # uses: actions/checkout@v3 |
20 |
| - |
21 |
| - # - name: Install deps |
22 |
| - # if: matrix.os == 'macos-latest' |
23 |
| - # run: brew install jq |
| 10 | + run-tests-macos: |
| 11 | + runs-on: ${{ matrix.os }} |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + os: [macos-latest] |
| 15 | + python-version: ['3.9', '3.12', '3.13'] |
| 16 | + |
| 17 | + steps: |
| 18 | + - name: Check out repository |
| 19 | + uses: actions/checkout@v3 |
| 20 | + |
| 21 | + - name: Install deps |
| 22 | + if: matrix.os == 'macos-latest' |
| 23 | + run: brew install jq |
24 | 24 |
|
25 |
| - # - name: Installing folly (via Homebrew) |
26 |
| - # run: | |
27 |
| - # brew install folly |
28 |
| - # echo "FOLLY_VERSION=v$(brew info folly --json | jq -r '.[0].installed[0].version' | sed 's/_.*//')" >> $GITHUB_ENV |
29 |
| - # # echo "INCLUDE_DIR=$(brew --prefix)/include" >> $GITHUB_ENV |
30 |
| - # # echo "LIBRARY_DIR=$(brew --prefix)/lib" >> $GITHUB_ENV |
31 |
| - |
32 |
| - # - name: Set up Python |
33 |
| - # uses: actions/setup-python@v4 |
34 |
| - # with: |
35 |
| - # python-version: ${{ matrix.python-version }} |
36 |
| - |
37 |
| - # - name: Install Poetry |
38 |
| - # uses: snok/install-poetry@v1 |
39 |
| - # with: |
40 |
| - # poetry-version: 'latest' |
41 |
| - |
42 |
| - # - name: Install dependencies |
43 |
| - # run: poetry install --all-groups |
44 |
| - |
45 |
| - # - name: Build |
46 |
| - # env: |
47 |
| - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
48 |
| - # CSTM_FOLLY_VERS: ${{ env.FOLLY_VERSION }} |
49 |
| - # run: | |
50 |
| - # poetry run python setup.py build_ext --inplace |
51 |
| - # # Removed: -I${{ env.INCLUDE_DIR }} -L${{ env.LIBRARY_DIR }} |
52 |
| - |
53 |
| - # - name: Build tests |
54 |
| - # run: | |
55 |
| - # cd folly/python/test |
56 |
| - # poetry run python setup.py build_ext --inplace |
57 |
| - # # Removed: -I${{ env.INCLUDE_DIR }} -L${{ env.LIBRARY_DIR }} |
58 |
| - |
59 |
| - # - name: Run tests |
60 |
| - # run: poetry run python -m pytest |
| 25 | + - name: Installing folly (via Homebrew) |
| 26 | + run: | |
| 27 | + brew install folly |
| 28 | + echo "FOLLY_VERSION=v$(brew info folly --json | jq -r '.[0].installed[0].version' | sed 's/_.*//')" >> $GITHUB_ENV |
| 29 | + # echo "INCLUDE_DIR=$(brew --prefix)/include" >> $GITHUB_ENV |
| 30 | + # echo "LIBRARY_DIR=$(brew --prefix)/lib" >> $GITHUB_ENV |
| 31 | +
|
| 32 | + - name: Set up Python |
| 33 | + uses: actions/setup-python@v4 |
| 34 | + with: |
| 35 | + python-version: ${{ matrix.python-version }} |
| 36 | + |
| 37 | + - name: Install Poetry |
| 38 | + uses: snok/install-poetry@v1 |
| 39 | + with: |
| 40 | + poetry-version: 'latest' |
| 41 | + |
| 42 | + - name: Install dependencies |
| 43 | + run: poetry install --all-groups |
| 44 | + |
| 45 | + - name: Build |
| 46 | + env: |
| 47 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 48 | + CSTM_FOLLY_VERS: ${{ env.FOLLY_VERSION }} |
| 49 | + run: | |
| 50 | + poetry run python setup.py build_ext --inplace |
| 51 | + # Removed: -I${{ env.INCLUDE_DIR }} -L${{ env.LIBRARY_DIR }} |
| 52 | +
|
| 53 | + - name: Build tests |
| 54 | + run: | |
| 55 | + cd folly/python/test |
| 56 | + poetry run python setup.py build_ext --inplace |
| 57 | + # Removed: -I${{ env.INCLUDE_DIR }} -L${{ env.LIBRARY_DIR }} |
| 58 | +
|
| 59 | + - name: Run tests |
| 60 | + run: poetry run python -m pytest |
61 | 61 |
|
62 | 62 | run-tests-linux:
|
63 | 63 | runs-on: ${{ matrix.os }}
|
64 | 64 | strategy:
|
65 | 65 | matrix:
|
66 | 66 | os: [ubuntu-latest]
|
67 |
| - python-version: ['3.12'] |
| 67 | + python-version: ['3.9', '3.13'] |
68 | 68 |
|
69 | 69 | steps:
|
70 | 70 | - name: Installing Homebrew
|
|
0 commit comments