-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (72 loc) · 2.52 KB
/
test.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
77
---
on:
pull_request:
push:
branches:
- main
jobs:
pytest:
defaults:
run:
working-directory: python-cli
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
cfg:
- os: ubuntu-latest
python-version: '3.6'
- os: ubuntu-latest
python-version: '3.7'
- os: ubuntu-latest
python-version: '3.8'
- os: ubuntu-latest
python-version: '3.9'
- os: macos-latest
python-version: '3.6'
- os: macos-latest
python-version: '3.7'
- os: macos-latest
python-version: '3.8'
- os: macos-latest
python-version: '3.9'
test-pypi-publish: true
runs-on: ${{ matrix.cfg.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.cfg.python-version }}
- run: pip install poetry
- run: poetry config virtualenvs.in-project true
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install
- run: poetry install
- run: poetry version "$(poetry version -s).dev$(date +%s)"
- run: poetry build
- run: poetry run pip install -U "dist/pytest-deepcov-$(poetry version -s).tar.gz"
- if: matrix.cfg.test-pypi-publish
run: poetry run twine upload --repository testpypi dist/* -ualex-treebeard-test -p${{ secrets.TEST_PYPI_PASSWORD }}
- uses: pre-commit/[email protected]
with:
extra_args: --verbose --all-files
- run: pwd;ls -la;poetry run pytest
ui-test:
strategy:
fail-fast: false
matrix:
cfg:
- os: macos-latest
runs-on: ${{ matrix.cfg.os }}
steps:
- uses: actions/checkout@v2
- run: yarn install
- run: yarn lint
- run: npm i --global vsce
- run: vsce package
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- run: yarn test