Adding test for IndexBinaryFlat.reconstruct_n() (#3310) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update-doxygen | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'faiss/**' | |
jobs: | |
doxygen: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
sudo apt-get install -y doxygen | |
python -m pip install --upgrade pip | |
pip install breathe | |
- name: Generate doxygen xml | |
run: doxygen | |
- name: Push changes | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "$GITHUB_ACTOR" | |
mkdir ./tmp | |
mv xml ./tmp/xml | |
git fetch origin gh-pages | |
git checkout gh-pages | |
git rm -rf xml cpp_api | |
mv ./tmp/xml ./xml | |
breathe-apidoc -o cpp_api xml | |
git add xml cpp_api | |
if [ -n "$(git status --porcelain)" ] | |
then | |
git commit -m "Update API docs ($(git rev-parse --short main))." | |
git push origin gh-pages | |
fi |