Skip to content

Commit d32c055

Browse files
wip
1 parent f910dfe commit d32c055

File tree

1 file changed

+8
-136
lines changed

1 file changed

+8
-136
lines changed

.circleci/config.yml

Lines changed: 8 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -32,144 +32,16 @@ commands:
3232
- "/usr/local/lib/site-python"
3333
when: always
3434
jobs:
35-
tests-python:
36-
parameters:
37-
python-image:
38-
type: string
39-
default: &default-python "cimg/python:3.8"
40-
pytest-marker:
41-
type: string
42-
default: "not integration"
43-
docker:
44-
- image: << parameters.python-image >>
45-
environment:
46-
PIPENV_VENV_IN_PROJECT: true
47-
- image: influxdb:3-core
48-
environment:
49-
- INFLUXDB3_NODE_IDENTIFIER_PREFIX=node01
50-
- INFLUXDB3_OBJECT_STORE=file
51-
- INFLUXDB3_DB_DIR=/var/lib/influxdb3/data
52-
steps:
53-
- checkout
54-
- run:
55-
name: Setup InfluxDB service
56-
command: |
57-
./scripts/influxdb-setup.sh \
58-
--export-url-as TESTING_INFLUXDB_URL \
59-
--export-db-as TESTING_INFLUXDB_DATABASE \
60-
--export-token-as TESTING_INFLUXDB_TOKEN
61-
- client-test:
62-
python-image: << parameters.python-image >>
63-
pytest-marker: << parameters.pytest-marker >>
64-
- store_test_results:
65-
path: test-reports
66-
- run:
67-
name: Collecting coverage reports
68-
command: |
69-
curl -Os https://uploader.codecov.io/latest/linux/codecov
70-
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
71-
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
72-
curl -s https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
73-
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
74-
shasum -a 256 -c codecov.SHA256SUM
75-
chmod +x ./codecov
76-
./codecov
77-
check-code-style:
78-
docker:
79-
- image: *default-python
80-
environment:
81-
PIPENV_VENV_IN_PROJECT: true
35+
tests-vm:
36+
machine:
37+
image: ubuntu-2404:2024.11.1
38+
resource_class: arm.medium
8239
steps:
83-
- checkout
84-
- run:
85-
name: Checks style consistency of setup.py.
86-
command: |
87-
pip install flake8 --user
88-
flake8 setup.py
89-
- run:
90-
name: Checks style consistency across sources.
91-
command: |
92-
pip install flake8 --user
93-
flake8 influxdb_client_3/
94-
- run:
95-
name: Checks style consistency across tests.
96-
command: |
97-
pip install flake8 --user
98-
flake8 tests/
99-
- run:
100-
name: Checks style consistency across examples.
101-
command: |
102-
pip install flake8 --user
103-
flake8 Examples/
104-
check-twine:
105-
docker:
106-
- image: *default-python
107-
environment:
108-
PIPENV_VENV_IN_PROJECT: true
109-
steps:
110-
- checkout
111-
- run:
112-
name: Checks that the description will render correctly on PyPI.
113-
command: |
114-
pip install --upgrade pip
115-
pip install 'twine>=5.1,<6.1' --user
116-
python setup.py sdist bdist_wheel
117-
twine check dist/*
118-
check-docstyle:
119-
docker:
120-
- image: *default-python
121-
environment:
122-
PIPENV_VENV_IN_PROJECT: true
123-
steps:
124-
- checkout
125-
- run:
126-
name: Checks compliance with Python docstring convention.
127-
command: |
128-
pip install pydocstyle --user
129-
pydocstyle --count influxdb_client_3
130-
40+
- run: "apt update"
41+
- run: "apt -y upgrade"
42+
- run: "python3 -v"
13143
workflows:
13244
version: 2
13345
build:
134-
when:
135-
not:
136-
equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]
137-
jobs:
138-
- check-code-style
139-
# - check-docstyle
140-
- check-twine
141-
- tests-python:
142-
name: test-3.8
143-
python-image: "cimg/python:3.8"
144-
- tests-python:
145-
name: test-3.9
146-
python-image: "cimg/python:3.9"
147-
- tests-python:
148-
name: test-3.10
149-
python-image: "cimg/python:3.10"
150-
- tests-python:
151-
name: test-3.11
152-
python-image: "cimg/python:3.11"
153-
- tests-python:
154-
name: test-3.12
155-
python-image: "cimg/python:3.12"
156-
- tests-python:
157-
name: test-3.13
158-
python-image: "cimg/python:3.13"
159-
- tests-python:
160-
requires:
161-
- test-3.8
162-
- test-3.9
163-
- test-3.10
164-
- test-3.11
165-
- test-3.12
166-
- test-3.13
167-
name: test-integration
168-
python-image: *default-python
169-
pytest-marker: "integration"
170-
171-
nightly:
172-
when:
173-
equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]
17446
jobs:
175-
- tests-python
47+
- tests-vm

0 commit comments

Comments
 (0)