diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index f932b68..302acb0 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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: diff --git a/test/test_detector.py b/test/test_detector.py index 8512b0d..a09c5b4 100644 --- a/test/test_detector.py +++ b/test/test_detector.py @@ -1,7 +1,6 @@ import os import unittest -import pytest import torch from pytorch_lightning.loggers import WandbLogger from torch import nn @@ -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")