Skip to content

Commit

Permalink
Exclude header spider from windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasdabbas committed Oct 31, 2023
1 parent 6ac6c0e commit d5fc8c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, windows-latest]
python: ["3.8", "3.9", "3.10", "3.11"]

steps:
Expand Down
5 changes: 4 additions & 1 deletion tests/test_header_spider.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import platform

import pytest

from advertools.header_spider import crawl_headers
Expand All @@ -10,4 +12,5 @@ def test_crawl_headers_raises_on_wrong_file_extension():

@pytest.mark.parametrize("column", ["url", "crawl_time", "status"])
def test_crawl_headers_returns_df(headers_crawl_df, column):
assert column in headers_crawl_df
if platform.system != "Windows":
assert column in headers_crawl_df

0 comments on commit d5fc8c2

Please sign in to comment.