Skip to content

Commit 062582a

Browse files
committed
working build for ubuntu & macos
1 parent 40fafbf commit 062582a

File tree

1 file changed

+51
-51
lines changed

1 file changed

+51
-51
lines changed

.github/workflows/ci.yml

+51-51
Original file line numberDiff line numberDiff line change
@@ -7,64 +7,64 @@ on:
77
- run_action
88

99
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
2424

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
6161

6262
run-tests-linux:
6363
runs-on: ${{ matrix.os }}
6464
strategy:
6565
matrix:
6666
os: [ubuntu-latest]
67-
python-version: ['3.12']
67+
python-version: ['3.9', '3.13']
6868

6969
steps:
7070
- name: Installing Homebrew

0 commit comments

Comments
 (0)