feat: use setuptools_scm for versioning #175
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request_target: | |
workflow_dispatch: | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
id: setup-python | |
uses: actions/setup-python@v5 | |
- name: Test | |
run: make -B test | |
- name: Update snapshot | |
run: | | |
git config user.name snapshot | |
git config user.email snapshot@users.noreply.github.com | |
git add . | |
if git commit -m "chore: update snapshot"; then | |
git push | |
fi |