mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
fix: upload coverage for latest py version
fix: checking qa without amalgamation fix: correct if expression chore: update condition chore: disable fail-fast chore: update name
This commit is contained in:
parent
1c1fb997d4
commit
a7ef90cce6
2 changed files with 13 additions and 6 deletions
17
.github/workflows/test.yml
vendored
17
.github/workflows/test.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: pytest linux 3.8
|
name: CI Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -12,10 +12,10 @@ jobs:
|
||||||
ci:
|
ci:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macOS-latest, windows-latest]
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
||||||
python-version: ["3.7", "3.8", "3.9","3.10" ]
|
python-version: ["3.7", "3.8", "3.9","3.10" ]
|
||||||
fail-fast: false
|
|
||||||
name: Test Python ${{ matrix.python-version }} ${{ matrix.os }}
|
name: Test Python ${{ matrix.python-version }} ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -29,9 +29,16 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m pip --version
|
python -m pip --version
|
||||||
python -m pip install -r requirements/tests.txt
|
python -m pip install -r requirements/tests.txt
|
||||||
python -m pip install . --no-deps
|
|
||||||
- name: Run QA Checks
|
- name: Run QA Checks
|
||||||
|
if: ${{ startsWith(matrix.os, 'ubuntu') && startsWith(matrix.python-version, '3.10') }}
|
||||||
run: python -m xonsh run-tests.xsh qa
|
run: python -m xonsh run-tests.xsh qa
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }} && ${{ matrix.python-version == '3.10' }}
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: python -m xonsh run-tests.xsh test -- --timeout=240
|
if: ${{ !startsWith(matrix.python-version, '3.10') }}
|
||||||
|
run: |
|
||||||
|
python -m pip install . --no-deps
|
||||||
|
python -m xonsh run-tests.xsh test -- --timeout=240
|
||||||
|
- name: Run tests with coverage
|
||||||
|
if: ${{ startsWith(matrix.python-version, '3.10') }}
|
||||||
|
run: |
|
||||||
|
python -m pip install -e . --no-deps
|
||||||
|
python -m xonsh run-tests.xsh test --report-coverage --no-amalgam -- --timeout=240
|
||||||
|
|
|
@ -40,6 +40,6 @@ force_exclude = '''.*/__amalgam__.py'''
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
profile = "black"
|
||||||
extend_skip_glob = ["xonsh/*_table.py", "xonsh/ply/**.py"]
|
extend_skip_glob = ["xonsh/*_table.py", "xonsh/ply/**.py", "*/__amalgam__.py", "**/__amalgam__.py"]
|
||||||
src_paths = ["xonsh", "xontrib", "xompletions", "tests"]
|
src_paths = ["xonsh", "xontrib", "xompletions", "tests"]
|
||||||
known_third_party = ["ply"]
|
known_third_party = ["ply"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue