Refactor CI pipeline to activate Miniconda environment directly from … #309
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: pre-commit | |
on: | |
pull_request: | |
push: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
- run: | | |
cat <<EOF > src/pyinterp/version.py | |
def release(): | |
return "0.0.0" | |
def date(): | |
return "01 January 2000" | |
EOF | |
- uses: pre-commit/action@v3.0.1 |