Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .actrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-P ubuntu-22.04=catthehacker/ubuntu:act-22.04
49 changes: 24 additions & 25 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,24 @@ jobs:
python-version: '3.12'

- name: Install uv package
run: pip install uv

- name: Create .venv
run: |
pip install uv
mkdir .venv
uv venv .venv

- name: Install invenio-override
if: ${{ !startsWith( github.ref, 'refs/tags') }}
run: |
mkdir .venv
uv venv .venv
source .venv/bin/activate

if [[ '${{ github.event.inputs.invenio-override-branch }}' == '' ]]; then
INVENIO_OVERRIDE_BRANCH="main"
else
INVENIO_OVERRIDE_BRANCH="${{ github.event.inputs.invenio-override-branch }}"
fi
uv pip install "git+https://github.com/sharedRDM/invenio-override@${INVENIO_OVERRIDE_BRANCH}"

install_cmd='uv pip install git+https://github.com/sharedRDM/invenio-override@${INVENIO_OVERRIDE_BRANCH}'
eval "$install_cmd"

- name: Change pyproject.toml override branch
if: "${{ github.event.inputs.invenio-override-branch != '' && !startsWith( github.ref, 'refs/tags') }}"
run: sed -i 's/invenio-override", branch = "main"/invenio-override", branch = "${{ github.event.inputs.invenio-override-branch }}"/g' pyproject.toml
Expand Down Expand Up @@ -136,24 +135,23 @@ jobs:
python-version: '3.12'

- name: Install uv package
run: pip install uv

- name: Create .venv
run: |
pip install uv
mkdir .venv
uv venv .venv

- name: Install invenio-override
if: ${{ !startsWith( github.ref, 'refs/tags') }}
run: |
mkdir .venv
uv venv .venv
source .venv/bin/activate

if [[ '${{ github.event.inputs.invenio-override-branch }}' == '' ]]; then
INVENIO_OVERRIDE_BRANCH="main"
else
INVENIO_OVERRIDE_BRANCH="${{ github.event.inputs.invenio-override-branch }}"
fi

install_cmd='uv pip install git+https://github.com/sharedRDM/invenio-override@${INVENIO_OVERRIDE_BRANCH}'
eval "$install_cmd"
uv pip install "git+https://github.com/sharedRDM/invenio-override@${INVENIO_OVERRIDE_BRANCH}"

- name: Change pyproject.toml override branch
if: "${{ github.event.inputs.invenio-override-branch != '' && !startsWith( github.ref, 'refs/tags') }}"
Expand Down Expand Up @@ -222,24 +220,23 @@ jobs:
python-version: '3.12'

- name: Install uv package
run: pip install uv

- name: Create .venv
run: |
pip install uv
mkdir .venv
uv venv .venv

- name: Install invenio-override
if: ${{ !startsWith( github.ref, 'refs/tags') }}
run: |
mkdir .venv
uv venv .venv
source .venv/bin/activate

if [[ '${{ github.event.inputs.invenio-override-branch }}' == '' ]]; then
INVENIO_OVERRIDE_BRANCH="main"
else
INVENIO_OVERRIDE_BRANCH="${{ github.event.inputs.invenio-override-branch }}"
fi

install_cmd='uv pip install git+https://github.com/sharedRDM/invenio-override@${INVENIO_OVERRIDE_BRANCH}'
eval "$install_cmd"
uv pip install "git+https://github.com/sharedRDM/invenio-override@${INVENIO_OVERRIDE_BRANCH}"

- name: Change pyproject.toml override branch
if: "${{ github.event.inputs.invenio-override-branch != '' && !startsWith( github.ref, 'refs/tags') }}"
Expand Down Expand Up @@ -305,18 +302,20 @@ jobs:
python-version: '3.12'

- name: Install uv package
run: pip install uv

- name: Create .venv
run: |
pip install uv
mkdir .venv
uv venv .venv

- name: Change pyproject.toml no override
run: sed -i 's/"invenio-override ~=0.0.6",//g' pyproject.toml

- name: Relock uv
run: |
mkdir .venv
uv venv .venv
source .venv/bin/activate
uv pip uninstall invenio-override
uv pip uninstall invenio-override || true
uv lock --upgrade
deactivate
rm -rf .venv
Expand Down