xonsh/.github/workflows/test.yml
Noortheen Raja a7ef90cce6 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
2022-03-22 19:13:11 +05:30

44 lines
1.4 KiB
YAML

name: CI Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9","3.10" ]
name: Test Python ${{ matrix.python-version }} ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'requirements/tests.txt'
- name: Install dependencies
run: |
python -m pip --version
python -m pip install -r requirements/tests.txt
- name: Run QA Checks
if: ${{ startsWith(matrix.os, 'ubuntu') && startsWith(matrix.python-version, '3.10') }}
run: python -m xonsh run-tests.xsh qa
- name: Run tests
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