-
-
Notifications
You must be signed in to change notification settings - Fork 37
48 lines (40 loc) · 979 Bytes
/
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
name: CI Tests
on:
pull_request:
branches: [ release ]
workflow_dispatch:
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
# Rich (pip)
FORCE_COLOR: 1
# Tox
PY_COLORS: 1
# Mypy (see https://github.com/python/mypy/issues/7771)
TERM: xterm-color
jobs:
ci:
name: CI
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: cache salad
uses: actions/cache@v3
with:
path: ${HOME}/.cache/salad
key: schema_salad
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
cache-dependency-path: ci.py
- name: Upgrade setuptools and install tox
run: |
pip install -U pip setuptools wheel
pip install cwltool crayons
- name: Run checks
run: python ci.py