| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2708f91 commit cd2c9bd
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,6 +41,26 @@ jobs: | |||
| 41 | 41 | TOXENV: ${{ matrix.toxenv }} | |
| 42 | 42 | run: tox | |
| 43 | 43 | ||
| 44 | + unit_windows: | ||
| 45 | + runs-on: windows-latest | ||
| 46 | + strategy: | ||
| 47 | + matrix: | ||
| 48 | + include: | ||
| 49 | + - python-version: "3.10" | ||
| 50 | + toxenv: py310,smoke | ||
| 51 | + steps: | ||
| 52 | + - uses: actions/checkout@v2 | ||
| 53 | + - name: Set up Python ${{ matrix.python-version }} | ||
| 54 | + uses: actions/setup-python@v2 | ||
| 55 | + with: | ||
| 56 | + python-version: ${{ matrix.python-version }} | ||
| 57 | + - name: Install dependencies | ||
| 58 | + run: pip install tox pytest-github-actions-annotate-failures | ||
| 59 | + - name: Run tests | ||
| 60 | + env: | ||
| 61 | + TOXENV: ${{ matrix.toxenv }} | ||
| 62 | + run: tox | ||
| 63 | + | ||
| 44 | 64 | functional: | |
| 45 | 65 | runs-on: ubuntu-20.04 | |
| 46 | 66 | strategy: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,6 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | 18 | import io | |
| 19 | 19 | import os | |
| 20 | + import sys | ||
| 20 | 21 | from textwrap import dedent | |
| 21 | 22 | from unittest import mock | |
| 22 | 23 | ||
@@ -214,6 +215,7 @@ def test_valid_data(m_open, path_exists): | |||
| 214 | 215 | ||
| 215 | 216 | @mock.patch("os.path.exists") | |
| 216 | 217 | @mock.patch("builtins.open") | |
| 218 | + @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows") | ||
| 217 | 219 | def test_data_from_helper(m_open, path_exists, tmp_path): | |
| 218 | 220 | helper = tmp_path / "helper.sh" | |
| 219 | 221 | helper.write_text( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments