Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: add running unit tests on windows/macos#1726

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nejch merged 1 commit intomainfromjlvillal/windows
Dec 8, 2021
Merged
Show file tree
Hide file tree
Changes fromall 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
34 changes: 21 additions & 13 deletions.github/workflows/test.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,31 +14,39 @@ env:

jobs:
unit:
runs-on:ubuntu-20.04
runs-on:${{ matrix.os }}
strategy:
matrix:
include:
- python-version: 3.7
os: [ubuntu-latest]
python:
- version: "3.7"
toxenv: py37
-python-version: 3.8
- version:"3.8"
toxenv: py38
-python-version: 3.9
- version:"3.9"
toxenv: py39
- python-version: "3.10"
toxenv: py310
- python-version: "3.10"
toxenv: smoke
- version: "3.10"
toxenv: py310,smoke
include:
- os: macos-latest
python:
version: "3.10"
toxenv: py310,smoke
- os: windows-latest
python:
version: "3.10"
toxenv: py310,smoke
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python.version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.python.version }}
- name: Install dependencies
run:pip install tox pytest-github-actions-annotate-failures
run:pip3 install tox pytest-github-actions-annotate-failures
- name: Run tests
env:
TOXENV: ${{ matrix.toxenv }}
TOXENV: ${{ matrix.python.toxenv }}
run: tox

functional:
Expand Down
2 changes: 2 additions & 0 deletionstests/unit/test_config.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,6 +17,7 @@

importio
importos
importsys
fromtextwrapimportdedent
fromunittestimportmock

Expand DownExpand Up@@ -214,6 +215,7 @@ def test_valid_data(m_open, path_exists):

@mock.patch("os.path.exists")
@mock.patch("builtins.open")
@pytest.mark.skipif(sys.platform.startswith("win"),reason="Not supported on Windows")
deftest_data_from_helper(m_open,path_exists,tmp_path):
helper=tmp_path/"helper.sh"
helper.write_text(
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp