forked from VimPlug/jedi
Try to improve GH Actions
This commit is contained in:
+12
-13
@@ -3,7 +3,7 @@ on: push
|
|||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
# Set the type of machine to run on
|
# Set the type of machine to run on
|
||||||
runs-on: [ubuntu-20.04, windows-2019]
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
environment: ['3.8', '3.9', '3.7', '3.6', 'interpreter']
|
environment: ['3.8', '3.9', '3.7', '3.6', 'interpreter']
|
||||||
@@ -14,20 +14,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: 'pip install .[testing]'
|
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
if: ${{ matrix.environment != 'interpreter' }}
|
if: ${{ matrix.environment != 'interpreter' }}
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.interpreter }}
|
python-version: ${{ matrix.environment }}
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: 'pip install .[testing]'
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest
|
run: python -m pytest
|
||||||
env:
|
env:
|
||||||
JEDI_TEST_ENVIRONMENT: ${{ matrix.environment }}
|
JEDI_TEST_ENVIRONMENT: ${{ matrix.environment }}
|
||||||
|
|
||||||
@@ -44,8 +44,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
flake8 jedi setup.py
|
python -m flake8 jedi setup.py
|
||||||
mypy jedi sith.py'
|
python -m mypy jedi sith.py
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
@@ -61,13 +61,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
coverage run --source jedi -m pytest
|
python -m coverage run --source jedi -m pytest
|
||||||
coverage report
|
python -m coverage report
|
||||||
|
|
||||||
- name: Upload coverage data
|
- name: Upload coverage data
|
||||||
run: |
|
run: |
|
||||||
pip install --quiet codecov coveralls
|
pip install --quiet codecov coveralls
|
||||||
coverage xml
|
python -m coverage xml
|
||||||
coverage report -m
|
python -m coverage report -m
|
||||||
coveralls
|
|
||||||
bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy -X search -X fix -X xcode -f coverage.xml
|
bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy -X search -X fix -X xcode -f coverage.xml
|
||||||
|
|||||||
Reference in New Issue
Block a user