-
Notifications
You must be signed in to change notification settings - Fork 9
87 lines (70 loc) · 2.33 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
77
78
79
80
81
82
83
84
85
86
87
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: '${{ matrix.os }}'
name: "Build ${{ matrix.os }}"
strategy:
matrix:
include:
- os: ubuntu-latest
- os: macos-latest
# - os: windows-latest
steps:
- uses: actions/checkout@v2
- name: Cache Conda Envs
uses: actions/cache@v2
with:
path: |
~/miniconda3
build/*.txt
key: ${{ runner.OS }}-conda-cache-${{ hashFiles('requirements/*.txt', 'setup.py', 'Makefile*') }}
restore-keys: |
${{ runner.OS }}-conda-cache-${{ hashFiles('requirements/*.txt', 'setup.py', 'Makefile*') }}
- name: make conda
run:
if [[ -e build/envs.txt ]]; then touch build/envs.txt; fi;
if [[ -e build/deps.txt ]]; then touch build/deps.txt; fi;
make conda
- name: make lint
run: make lint
- name: make mypy
run: make mypy
- name: make test
run: make test
- name: make dist_build
run: |
rm -rf build/
make dist_build
mv dist/*.whl dist/pylint_ignore-ci-py2.py3-none-any.whl
- name: upload dist
if: ${{ matrix.os }} == 'ubuntu-latest'
uses: actions/upload-artifact@v2
with:
name: pylint_ignore-ci-py2.py3-none-any.whl
path: dist/pylint_ignore-ci-py2.py3-none-any.whl
build-windows:
needs: build
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- uses: actions/download-artifact@v2
with:
name: pylint_ignore-ci-py2.py3-none-any.whl
- name: install
run: python3 -m pip install pylint_ignore-ci-py2.py3-none-any.whl
- name: info
run: |
python3 -c "import pylint_ignore as p; print(p.__version__)"
python3 -c "import platform; print(platform.platform())"
- name: basic_test
run: |
python3 -m pylint_ignore --rcfile=setup.cfg --ignorefile=fixtures\pylint-ignore.md fixtures\