From 3f9bafead326690bd5204bbb04cdd8343cdc9cea Mon Sep 17 00:00:00 2001 From: mib1185 Date: Sun, 13 Feb 2022 00:12:45 +0100 Subject: [PATCH 1/7] add ci --- .github/workflows/tests.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..a0077ac --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,47 @@ +name: Tests + +on: + push: + branches: + - master + pull_request: ~ + +jobs: + tests: + name: Python ${{ matrix.python-version }} + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] + + steps: + - uses: actions/checkout@master + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: pip install -r requirements_test.txt + + - name: Test + run: tox -e py36,py37,py38,py39,py310 + + cov_docs: + name: Coverage and Doc tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: "3.10" + + - name: Install dependencies + run: pip install -r requirements_test.txt + + - name: Test + run: tox -e doc,cov From 6f41c828bf3b0ef44bbcf6502a9fbfd7e4770db5 Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Thu, 17 Feb 2022 13:02:44 +0100 Subject: [PATCH 2/7] define tox_env related to python-version --- .github/workflows/tests.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a0077ac..17eb7bc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,6 +14,17 @@ jobs: strategy: matrix: python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] + include: + - python-version: 3.6 + tox_env: py36 + - python-version: 3.7 + tox_env: py37 + - python-version: 3.8 + tox_env: py38 + - python-version: 3.9 + tox_env: py39 + - python-version: 3.10 + tox_env: py310 steps: - uses: actions/checkout@master @@ -27,7 +38,7 @@ jobs: run: pip install -r requirements_test.txt - name: Test - run: tox -e py36,py37,py38,py39,py310 + run: tox -e ${{ matrix.tox_env }} cov_docs: name: Coverage and Doc tests From 9ae3fa80900443b4a7f18fca371ea9031447b3d5 Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Sun, 13 Mar 2022 17:59:27 +0100 Subject: [PATCH 3/7] run tests direct without tox --- .github/workflows/tests.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 17eb7bc..02d3def 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,17 +14,6 @@ jobs: strategy: matrix: python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] - include: - - python-version: 3.6 - tox_env: py36 - - python-version: 3.7 - tox_env: py37 - - python-version: 3.8 - tox_env: py38 - - python-version: 3.9 - tox_env: py39 - - python-version: 3.10 - tox_env: py310 steps: - uses: actions/checkout@master @@ -37,8 +26,8 @@ jobs: - name: Install dependencies run: pip install -r requirements_test.txt - - name: Test - run: tox -e ${{ matrix.tox_env }} + - name: Tests + run: pytest cov_docs: name: Coverage and Doc tests From cdaddca8c9b4d2af1a3c78662af7058453f09fe3 Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Sun, 13 Mar 2022 18:01:07 +0100 Subject: [PATCH 4/7] fix dependencies --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 02d3def..cc3c1be 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,7 +24,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies - run: pip install -r requirements_test.txt + run: pip install pytest requests - name: Tests run: pytest From d2adf85fbeea2a58af0ef5eb90781bbb42ac3f70 Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Sun, 13 Mar 2022 18:10:21 +0100 Subject: [PATCH 5/7] docs and cov without tox --- .github/workflows/tests.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cc3c1be..5834799 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,8 +29,8 @@ jobs: - name: Tests run: pytest - cov_docs: - name: Coverage and Doc tests + docs: + name: Build docs runs-on: ubuntu-latest steps: - uses: actions/checkout@master @@ -41,7 +41,26 @@ jobs: python-version: "3.10" - name: Install dependencies - run: pip install -r requirements_test.txt + run: pip install sphinx sphinx_rtd_theme + + - name: Build docs + run: | + cd docs + sphinx-build -qb html -d /tmp/doctrees . /tmp/html + + coverage: + name: Coverage + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: "3.10" + + - name: Install dependencies + run: pip install pytest pytest-cov coveralls - name: Test - run: tox -e doc,cov + run: pytest -qq --cov=fritzconnection --cov-report=term-missing From 35ede8333601d5dc78eba541c3ad903e188df3b3 Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Sun, 13 Mar 2022 18:12:12 +0100 Subject: [PATCH 6/7] Update tests.yml --- .github/workflows/tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5834799..8813ea1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -41,7 +41,9 @@ jobs: python-version: "3.10" - name: Install dependencies - run: pip install sphinx sphinx_rtd_theme + run: | + pip install sphinx sphinx_rtd_theme + pip install . - name: Build docs run: | From 7adbb7b5833b559191912a53ff598566455b7c43 Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Sun, 13 Mar 2022 18:13:56 +0100 Subject: [PATCH 7/7] Update tests.yml --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8813ea1..1619d91 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,7 +35,7 @@ jobs: steps: - uses: actions/checkout@master - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python 3.10 uses: actions/setup-python@v2 with: python-version: "3.10" @@ -56,7 +56,7 @@ jobs: steps: - uses: actions/checkout@master - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python 3.10 uses: actions/setup-python@v2 with: python-version: "3.10"