-
Notifications
You must be signed in to change notification settings - Fork 5
72 lines (70 loc) · 2.08 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
name: CI
on: [ push ]
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11.2
cache: 'pipenv'
- run: pip install pipenv
- run: pipenv install --dev
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- uses: haskell/actions/setup@v2
with:
ghc-version: '9.2'
cabal-version: '3.6'
- uses: actions/cache@v3
name: Cache cabal
with:
path: |
~/.cabal
~/.ghc
dist-newstyle
key: ${{ runner.os }}-ghc-9.2.1-20220111
restore-keys: |
${{ runner.os }}-ghc-9.2.1-
- run: cabal v1-install aeson
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install [email protected]
- run: npm install -g [email protected]
- run: sudo apt -y install hlint cppcheck shellcheck checkstyle
- run: curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.48.2/ktlint && chmod a+x ktlint
- run: echo "${GITHUB_WORKSPACE}" >> $GITHUB_PATH
- run: pipenv run pytest -n auto --cov=tested --cov-report=xml tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: isort/[email protected]
with:
sortPaths: "./tested ./tests"
- uses: psf/black@stable
with:
version: "~= 23.0"
src: "./tested ./tests"
types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11.2
cache: 'pipenv'
- run: pip install pipenv
- run: pipenv install --dev
- run: echo "$(pipenv --venv)/bin" >> $GITHUB_PATH
- uses: jakebailey/pyright-action@v1
with:
version: '1.1.316'
warnings: true
working-directory: tested/