-
Notifications
You must be signed in to change notification settings - Fork 28
/
.gitlab-ci.yml
62 lines (52 loc) · 1.14 KB
/
.gitlab-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
image: python:3.9.16 # The latest python version 3.9.17 throws an error in the CI/CD pipeline
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
- venv/
stages:
- test
before_script:
- python --version # For debugging
- pip3 install virtualenv
- virtualenv venv
- source venv/bin/activate
# - pip install pre-commit
# - pip install isort
# - pip install black==23.1.0
# - pip install flake8
# - pip install pylint
- pip install pytest
- pip install networkx[default]
- pip install -e .
- pip install networkit
- pip install qiskit-aer
- pip install qiskit_ibm_runtime
- pip install pennylane
- pip install pytket
- pip install pytket-qiskit
# isort:
# stage: linting
# script:
# - isort .
# black:
# stage: linting
# script:
# - black --check src/
# - black --check tests/
# - black --exclude=´/src/qrisp/interface/´
# flake8:
# stage: linting
# script:
# - flake8 src/
# - flake8 tests/
# pylint:
# stage: linting
# script:
# - pylint src/
python_test:
stage: test
script:
#- venv install
- python -m pytest