fix: add probabilities to sklearn classification test when gt is not … #112
This file contains hidden or 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: Build and Deploy Documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| - pre-release | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install -U pip | |
| curl -sSL https://install.python-poetry.org | python3 - | |
| export PATH="$HOME/.local/bin:$PATH" | |
| poetry install --no-cache --only docs | |
| - name: Determine Version | |
| id: determine_version | |
| run: | | |
| if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then | |
| VERSION="v$(python -c "import quadra; print(quadra.__version__)")" | |
| elif [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then | |
| VERSION="dev" | |
| elif [[ "${{ github.ref }}" == "refs/heads/pre-release" ]]; then | |
| VERSION="pre-release" | |
| fi | |
| echo "::set-output name=version::$VERSION" | |
| - name: Build Documentation | |
| run: | | |
| git config user.name "${GITHUB_ACTOR}" | |
| git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
| git fetch origin gh-pages --depth=1 | |
| VERSION="${{ steps.determine_version.outputs.version }}" | |
| if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then | |
| poetry run mike deploy --push --update-aliases $VERSION latest | |
| else | |
| poetry run mike deploy --push $VERSION | |
| fi |