-
Notifications
You must be signed in to change notification settings - Fork 7
84 lines (84 loc) · 2.63 KB
/
build.yaml
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
name: Build
on:
workflow_dispatch:
inputs:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
jobs:
build:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
steps:
- uses: actions/checkout@v2
- name: Fetch complete history for all tags and branches
run: git fetch --prune --unshallow
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup pip
run: python -m pip install --upgrade pip setuptools wheel
- name: Install Colorpedia
run: pip install .[dev]
- name: Run black
run: black --check .
- name: Run flake8
run: flake8 .
- name: Run isort
run: isort --check --profile=black .
- name: Run mypy
run: mypy colorpedia
- name: Run pytest
run: py.test --cov=colorpedia --cov-report=xml
- name: Run color
run: |
color version
color version --json
color config init
color config show
color name white
color hex FFFFFF
color rgb 255 255 255
color hsl 0 0 100
color hsv 0 0 100
color cmyk 0 0 0 0
color palette molokai
color name white --all
color hex FFFFFF --all
color rgb 255 255 255 --all
color hsl 0 0 100 --all
color hsv 0 0 100 --all
color cmyk 0 0 0 0 --all
color palette molokai --all
color name white --nounits
color hex FFFFFF --nounits
color rgb 255 255 255 --nounits
color hsl 0 0 100 --nounits
color hsv 0 0 100 --nounits
color cmyk 0 0 0 0 --nounits
color palette molokai --nounits
color name white --json
color hex FFFFFF --json
color rgb 255 255 255 --json
color hsl 0 0 100 --json
color hsv 0 0 100 --json
color cmyk 0 0 0 0 --json
color palette molokai --json
color name white --shades
color hex FFFFFF --shades
color rgb 255 255 255 --shades
color hsl 0 0 100 --shades
color hsv 0 0 100 --shades
color cmyk 0 0 0 0 --shades
- name: Upload coverge to Codecov
uses: codecov/codecov-action@v2
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}