-
-
Notifications
You must be signed in to change notification settings - Fork 13
76 lines (70 loc) · 2.07 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Vistir CI
on:
push:
paths-ignore:
- 'docs/**'
- 'news/**'
- '*.ini'
- '*.md'
- '**/*.txt'
- '*.rst'
- '.gitignore'
- '.gitmodules'
- '.gitattributes'
- '.editorconfig'
branches:
- master
pull_request:
paths-ignore:
- 'docs/**'
- 'news/**'
- '*.ini'
- '*.md'
- '**/*.txt'
- '*.rst'
- '.gitignore'
- '.gitmodules'
- '.gitattributes'
- '.editorconfig'
jobs:
test:
name: ${{matrix.os}} / ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
os: [MacOS, Ubuntu, Windows]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Get python path
id: python-path
run: |
echo ::set-output name=path::$(python -c "import sys; print(sys.executable)")
- name: Install latest pip, setuptools, wheel
run: |
python -m pip install --upgrade pip setuptools wheel --upgrade-strategy=eager
python -m pip install --upgrade pipenv
- name: Run tests
env:
PIPENV_DEFAULT_PYTHON_VERSION: ${{ matrix.python-version }}
PYTHONWARNINGS: ignore:DEPRECATION
PIPENV_NOSPIN: '1'
CI: '1'
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_GIT_COMMIT: ${{ github.sha }}
COVERALLS_GIT_BRANCH: ${{ github.ref }}
COVERALLS_FLAG_NAME: ${{ matrix.os }}-${{ matrix.python-version }}
COVERALLS_SERVICE_NAME: github
COVERALLS_SERVICE_JOB_ID: ${{ github.run_id }}
COVERALLS_PARALLEL: true
run: |
git submodule sync
git submodule update --init --recursive
python -m pip install pipenv --upgrade
python -m pipenv install --dev --python=${{ steps.python-path.outputs.path }}
python -m pipenv run coverage run --concurrency=thread -m pytest -p no:xdist -ra tests/