Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install Pillow font for gh actions #34

Merged
merged 7 commits into from
Oct 25, 2023
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
3 changes: 3 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: install fonts for Pillow
run: |
sudo apt-get install fonts-freefont-ttf
- name: install conda env with micromamba
uses: mamba-org/provision-with-micromamba@main
with:
Expand Down
5 changes: 0 additions & 5 deletions test/test_detector.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import unittest

import pytest
import torch
from pytorch_lightning.loggers import WandbLogger
from torch import nn
Expand Down Expand Up @@ -101,10 +100,6 @@ def test_model_init_heatmaps(self):
self.assertTrue(torch.mean(heatmap).item() < 0.1)
self.assertTrue(torch.var(heatmap).item() < 0.1)

# TODO: chcek if we can run it on gh actions as well.
IN_GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") == "true"

@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test doesn't work in Github Actions atm")
def test_checkpoint_loading(self):
wandb_logger = WandbLogger(dir=get_wandb_log_dir_path(), mode="offline")

Expand Down
Loading