diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 7d6fb52..80f06d5 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -11,7 +11,10 @@ on: jobs: test: - runs-on: ubuntu-latest # this is the only distro available 🙃 + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] # ubuntu is the only distro available 🙃 steps: - name: Checkout diff --git a/tests/conftest.py b/tests/conftest.py index 071e268..70dc933 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -33,8 +33,9 @@ def download_mdto_xsd(target_dir): response = requests.get(xsd_url) response.raise_for_status() # raise error if download failed - with open(target_dir / xsd_filename, "w") as f: - f.write(response.text) + # should be response.text and open(file, "w"), but NA is sending incorrect header information + with open(target_dir / xsd_filename, "wb") as f: + f.write(response.content) @pytest.fixture