DM-47328: Add QuantumBackedButler.retrieveArtifacts #1327
Workflow file for this run
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
# This file is part of daf_butler. | |
# | |
# Developed for the LSST Data Management System. | |
# This product includes software developed by the LSST Project | |
# (http://www.lsst.org). | |
# See the COPYRIGHT file at the top-level directory of this distribution | |
# for details of code ownership. | |
# | |
# This software is dual licensed under the GNU General Public License and also | |
# under a 3-clause BSD license. Recipients may choose which of these licenses | |
# to use; please see the files gpl-3.0.txt and/or bsd_license.txt, | |
# respectively. If you choose the GPL option then the following text applies | |
# (but note that there is still no warranty even if you opt for BSD instead): | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. | |
# | |
# You should have received a copy of the GNU General Public License | |
# along with this program. If not, see <http://www.gnu.org/licenses/>. | |
name: Docker | |
on: | |
pull_request: {} | |
push: | |
tags: | |
- "*" | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Needed to fetch tags, used by Python install process to | |
# figure out version number | |
fetch-depth: 0 | |
- uses: lsst-sqre/build-and-push-to-ghcr@v1 | |
id: build | |
with: | |
image: ${{ github.repository }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run unit tests inside Docker | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
# In addition to the main output image, the Dockerfile contains a second | |
# "unit-test" image that runs the test suite. | |
target: unit-test | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install uv | |
run: | | |
python -m pip install --upgrade pip | |
pip install uv | |
- name: Install dependencies | |
run: | | |
uv pip install --system --upgrade setuptools wheel build | |
uv pip install --system -r requirements.txt | |
uv pip install --system testcontainers | |
- name: Install Butler client | |
run: | | |
uv pip install --system -v --no-deps -e . | |
- name: Run smoke test | |
run: | | |
export BUTLER_SERVER_DOCKER_IMAGE=${{ steps.build.outputs.fully_qualified_image_digest }} | |
python tests_integration/test_docker_container.py |