From 62b451c435136ca04fbd287fb7591e54313ab658 Mon Sep 17 00:00:00 2001 From: Alan <41682961+alan-cooney@users.noreply.github.com> Date: Tue, 10 Jan 2023 10:46:50 +0000 Subject: [PATCH] Setup versioning only for releases (#46) Default to 0.0.0 in the codebase, and then let the CD set the correct version on release. --- .github/workflows/release.yml | 33 ------------------- .../tests/snapshots/snap_test_activations.py | 4 +-- .../tests/snapshots/snap_test_attention.py | 2 +- .../tests/snapshots/snap_test_hello.py | 2 +- .../tests/snapshots/snap_test_tokens.py | 2 +- .../tests/snapshots/snap_test_topk_samples.py | 2 +- .../tests/snapshots/snap_test_topk_tokens.py | 2 +- python/circuitsvis/tests/test_activations.py | 2 -- python/circuitsvis/tests/test_attention.py | 1 - python/circuitsvis/tests/test_hello.py | 1 - python/circuitsvis/tests/test_tokens.py | 1 - python/circuitsvis/tests/test_topk_samples.py | 2 -- python/circuitsvis/tests/test_topk_tokens.py | 1 - python/poetry.lock | 20 +++++------ python/pyproject.toml | 2 +- react/package.json | 2 +- 16 files changed, 19 insertions(+), 60 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c23fe83..0336d97 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,39 +87,6 @@ jobs: env: POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }} - commit-version-updates: - name: Bump Python & Node package versions - needs: - - semver-parser - - release-react - - release-python - runs-on: ubuntu-latest - permissions: - actions: write - contents: write - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v3 - - name: Install Poetry - uses: snok/install-poetry@v1 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.9' - cache: 'poetry' - - name: Bump Python package version - run: poetry version ${{needs.semver-parser.outputs.semver}} - working-directory: python - - name: Bump Node package version - run: yarn version --new-version ${{needs.semver-parser.outputs.semver}} --no-git-tag-version --no-commit-hooks - working-directory: react - - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v4.16.0 - with: - commit_message: Release version ${{needs.semver-parser.outputs.semver}} - branch: main - publish-storybook: name: Publish docs to GitHub Pages environment: diff --git a/python/circuitsvis/tests/snapshots/snap_test_activations.py b/python/circuitsvis/tests/snapshots/snap_test_activations.py index ed37212..aaaf850 100644 --- a/python/circuitsvis/tests/snapshots/snap_test_activations.py +++ b/python/circuitsvis/tests/snapshots/snap_test_activations.py @@ -9,7 +9,7 @@ snapshots['TestTextNeuronActivations.test_multi_matches_snapshot 1'] = '''