fix git authorship complaints in the Continuous Integration environment #16
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: Test Template Instantiation | |
| on: [push] | |
| jobs: | |
| test_template: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| vcs: [hg, git] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Set up python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: 'pyproject.toml' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "0.9.8" | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --locked --no-install-project | |
| - name: Set authorship for git | |
| if: matrix.vcs == 'git' | |
| run: | | |
| git config --global init.defaultBranch main | |
| git config --global user.name "GitHub Actions" | |
| git config --global user.email "[email protected]" | |
| - name: Test template instantiation | |
| run: uv run make test | |
| env: | |
| VCS: ${{ matrix.vcs }} | |
| - name: Minimize uv cache | |
| run: uv cache prune --ci |