mirror of
https://github.com/beetbox/beets.git
synced 2026-01-08 17:08:12 +01:00
ci: added windows
This commit is contained in:
parent
9f8bd4cd3f
commit
9a67cee95f
2 changed files with 30 additions and 13 deletions
42
.github/workflows/ci.yaml
vendored
42
.github/workflows/ci.yaml
vendored
|
|
@ -5,8 +5,9 @@ jobs:
|
|||
runs-on: ${{ matrix.platform }}
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [ ubuntu-latest ]
|
||||
platform: [ windows-latest, ubuntu-latest ]
|
||||
env:
|
||||
PY_COLOR: 1
|
||||
NOSE_SHOW_SKIPPED: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
@ -15,26 +16,33 @@ jobs:
|
|||
with:
|
||||
python-version: 2.7
|
||||
- uses: actions/cache@v1
|
||||
if: startsWith(runner.os, 'Linux')
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
- uses: actions/cache@v1
|
||||
if: startsWith(runner.os, 'Windows')
|
||||
with:
|
||||
path: ~\AppData\Local\pip\Cache
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
- name: Install base dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install tox sphinx
|
||||
- name: Test with tox
|
||||
run: |
|
||||
tox -e py27-test
|
||||
tox -e docs
|
||||
run: tox -e py27-test
|
||||
test-3x:
|
||||
runs-on: ${{ matrix.platform }}
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [ ubuntu-latest ]
|
||||
platform: [ windows-latest, ubuntu-latest ]
|
||||
python-version: [ 5, 6, 7, 8 ]
|
||||
env:
|
||||
PY_COLOR: 1
|
||||
NOSE_SHOW_SKIPPED: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
@ -43,24 +51,32 @@ jobs:
|
|||
with:
|
||||
python-version: 3.${{ matrix.python-version }}
|
||||
- uses: actions/cache@v1
|
||||
if: startsWith(runner.os, 'Linux')
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
- uses: actions/cache@v1
|
||||
if: startsWith(runner.os, 'Windows')
|
||||
with:
|
||||
path: ~\AppData\Local\pip\Cache
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
- name: Install base dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install tox sphinx
|
||||
- name: Test with tox
|
||||
- name: Test, coverage, and flake8 with tox
|
||||
if: matrix.python-version == '8'
|
||||
run: |
|
||||
if [[ ${{ matrix.python-version }} == '8' ]]; then
|
||||
tox -e py3${{ matrix.python-version }}-test
|
||||
tox -e py3${{ matrix.python-version }}-cov
|
||||
tox -e py3${{ matrix.python-version }}-flake8
|
||||
else
|
||||
tox -e py3${{ matrix.python-version }}-test
|
||||
fi
|
||||
tox -e py3${{ matrix.python-version }}-test
|
||||
tox -e py3${{ matrix.python-version }}-cov
|
||||
tox -e py3${{ matrix.python-version }}-flake8
|
||||
- name: Test with tox
|
||||
if: matrix.python-version != '8'
|
||||
run: tox -e py3${{ matrix.python-version }}-test
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
|
|||
1
tox.ini
1
tox.ini
|
|
@ -19,6 +19,7 @@ PLATFORM =
|
|||
|
||||
[testenv]
|
||||
passenv =
|
||||
LANG # avoids output errors
|
||||
NOSE_SHOW_SKIPPED # Undocumented feature of nose-show-skipped.
|
||||
deps =
|
||||
{test,cov}: {[_test]deps}
|
||||
|
|
|
|||
Loading…
Reference in a new issue