mirror of https://github.com/borgbase/vorta
CI: Add python 3.9, labels, disable macOS mount test. By @samuel-w (#734)
This commit is contained in:
parent
fc2b70db64
commit
529b1da5b1
|
@ -10,7 +10,7 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.6, 3.7, 3.8]
|
python-version: [3.6, 3.7, 3.8, 3.9]
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
exclude:
|
exclude:
|
||||||
# Only test Python 3.7 on macOS
|
# Only test Python 3.7 on macOS
|
||||||
|
@ -18,6 +18,8 @@ jobs:
|
||||||
python-version: 3.6
|
python-version: 3.6
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
|
- os: macos-latest
|
||||||
|
python-version: 3.9
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -61,8 +63,12 @@ jobs:
|
||||||
coverage run -m pytest
|
coverage run -m pytest
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v1
|
||||||
|
env:
|
||||||
|
OS: ${{ runner.os }}
|
||||||
|
python: ${{ matrix.python-version }}
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
env_vars: OS, python
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import sys
|
||||||
import psutil
|
import psutil
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -78,6 +79,7 @@ def test_check(qapp, mocker, borg_json_output, qtbot):
|
||||||
qtbot.waitUntil(lambda: main.logText.text().startswith(success_text), timeout=3000)
|
qtbot.waitUntil(lambda: main.logText.text().startswith(success_text), timeout=3000)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif(sys.platform == 'darwin', reason="Test currently broken by Homebrew")
|
||||||
def test_archive_mount(qapp, qtbot, mocker, borg_json_output, monkeypatch, choose_file_dialog):
|
def test_archive_mount(qapp, qtbot, mocker, borg_json_output, monkeypatch, choose_file_dialog):
|
||||||
def psutil_disk_partitions(**kwargs):
|
def psutil_disk_partitions(**kwargs):
|
||||||
DiskPartitions = namedtuple('DiskPartitions', ['device', 'mountpoint'])
|
DiskPartitions = namedtuple('DiskPartitions', ['device', 'mountpoint'])
|
||||||
|
|
Loading…
Reference in New Issue