Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
antarcticrainforest committed Mar 20, 2024
1 parent b95ec24 commit 8a46632
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/build_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,35 @@ jobs:
tags: |
ghcr.io/${{ steps.repository.outputs.repo }}:${{ steps.repository.outputs.tag }}
ghcr.io/${{ steps.repository.outputs.repo }}:latest
bump-databrowser-version:
runs-on: ubuntu-latest
needs: build-and-push-image
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: "3.X"

- name: Get tag
id: repository
run: |
echo "repo=$(echo ${{ github.repository }}|tr 'A-Z' 'a-z')" >> $GITHUB_OUTPUT
echo "tag=$(python src/databrowser/__init__.py)" >> $GITHUB_OUTPUT
- name: Installing dependencies
run: pip install git-python packaging tomli

- name: Getting realease job
run: curl -Ls -o bump.py https://raw.githubusercontent.com/FREVA-CLINT/freva-deployment/versions/release.py

- name: Do the release job
run: python3 bump.py deploy databrowser -b versions -v
13 changes: 12 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ env = [
]

[project.optional-dependencies]
dev = [ "tox-battery", "flit"]
dev = [ "tox", "flit"]

[tool.flake8]
ignore = "F405"
Expand Down Expand Up @@ -75,7 +75,9 @@ legacy_tox_ini = """
[tox]
min_version = 4.0
env_list = types, lint, test
passenv = *
[testenv]
passenv = *
parallel_show_output = false
[testenv:test]
deps = -e .
Expand Down Expand Up @@ -120,4 +122,13 @@ deps = git-python
packaging
tomli
commands = python3 dev-env/release.py tag databrowser -b main
[testenv:bump]
commands = python3 bump.py deploy databrowser -b versions -v
#commands_pre = curl -Ls -o bump.py https://raw.githubusercontent.com/FREVA-CLINT/freva-deployment/versions/release.py
allowlist_externals = rm
curl
#commands_post = rm bump.py
deps = git-python
packaging
tomli
"""

0 comments on commit 8a46632

Please sign in to comment.