fix: mamba does not like full path to binary #235
Workflow file for this run
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: auto-format | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - "src/**" | |
| - "README.qmd" | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| auto-format: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| if: github.event_name == 'pull_request' | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - uses: actions/checkout@v4 | |
| if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install .[dev,docs] --upgrade pip | |
| - uses: quarto-dev/quarto-actions/setup@v2 | |
| with: | |
| version: 1.4.515 | |
| - name: quarto render readme | |
| run: | | |
| quarto render README.qmd | |
| - name: format | |
| uses: pre-commit/action@v3.0.1 | |
| continue-on-error: true | |
| - name: commit & push | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add README.md | |
| git commit -m "ci: 🤖 render readme" || echo "nothing to commit" | |
| git add . | |
| git commit -m "ci: 🤖 format with pre-commit" || echo "nothing to commit" | |
| git push || echo "nothing to push" |