Drop files from immediate storage after they have been pushed #43
2 changed files with 15 additions and 1 deletions
2
.github/workflows/run-server-tests.yml
vendored
2
.github/workflows/run-server-tests.yml
vendored
|
|
@ -9,7 +9,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.7]
|
||||
python-version: [3.11]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
|
|||
|
|
@ -306,6 +306,20 @@ def add_file_to_dataset(dataset_root: Path, file: Path, home: Path):
|
|||
"HOME": str(home)
|
||||
})
|
||||
|
||||
subprocess.run(
|
||||
[
|
||||
"datalad",
|
||||
"drop",
|
||||
"--what", "filecontent",
|
||||
"-d", str(dataset_root),
|
||||
str(file)
|
||||
],
|
||||
check=True,
|
||||
env={
|
||||
**os.environ,
|
||||
"HOME": str(home)
|
||||
})
|
||||
|
||||
return subprocess.run(
|
||||
[
|
||||
"git",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue