Skip to content

Commit

Permalink
try zot from github action step
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincinator committed Aug 15, 2024
1 parent afcd583 commit b6955aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
sudo wget -O /usr/bin/zot https://github.com/project-zot/zot/releases/download/v2.1.0/zot-linux-amd64
sudo chmod +x /usr/bin/zot
sudo chown root:root /usr/bin/zot
- name: serve zot
run: zot serve zot/config.json
- name: Run tests with pytest
run: poetry run pytest

8 changes: 0 additions & 8 deletions tests/test_push_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ def write_zot_config(config_dict, file_path):
with open(file_path, "w") as config_file:
json.dump(config_dict, config_file, indent=4)


def enqueue_output(file, queue):
for line in iter(file.readline, ""):
queue.put(line)
file.close()


@pytest.fixture(autouse=True)
def setup_test_environment():
zot_config = {
"distSpecVersion": "1.1.0",
Expand Down

0 comments on commit b6955aa

Please sign in to comment.