-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.yml
45 lines (40 loc) · 1.32 KB
/
config.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
version: 2.1
executors:
ubuntu2204:
docker:
- image: ubuntu:22.04
commands:
install-test:
parameters:
python-version:
type: string
steps:
- run: apt-get update
- run: apt-get install -y software-properties-common
- run: add-apt-repository -y ppa:deadsnakes/ppa
- run: apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Europe/Berlin apt-get install -y --no-install-recommends make git curl python3-pip python<<parameters.python-version>> python<<parameters.python-version>>-venv
- checkout
- run: python<<parameters.python-version>> -mvenv venv<<parameters.python-version>>
- run: source venv<<parameters.python-version>>/bin/activate; make install-dev PYTHON=python<<parameters.python-version>>
- run: source venv<<parameters.python-version>>/bin/activate; make assets test PYTHON=python<<parameters.python-version>>
jobs:
build-python:
executor: ubuntu2204
parameters:
python-version:
type: string
steps:
- install-test:
python-version: <<parameters.python-version>>
workflows:
build:
jobs:
- build-python:
matrix:
parameters:
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'