Skip to content

Commit

Permalink
[4.3.x] Fix CI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed Jan 16, 2024
1 parent 0fda596 commit 73ecd11
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,26 +99,32 @@ commands:
echo
- run:
name: Installing psql client, enchant, netcat, rust
command: $SUDO apt -y install postgresql-client netcat python3-enchant rustc
name: Installing psql client, enchant, netcat
command: $SUDO apt -y install postgresql-client netcat python3-enchant python3-venv python3-dev

- run:
name: Installing rust
command: $SUDO curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

- restore_cache:
keys:
- v23-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum
- v24-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum
"requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v23-dependencies-{{ .Environment.CIRCLE_JOB }}
- v24-dependencies-{{ .Environment.CIRCLE_JOB }}

- run:
name: install latest pip
command: |
rm -rf venv
$PYTHON_INTERPRETER -m venv venv
. venv/bin/activate
pip install -U pip
- run:
name: install dependencies
command: |
rm -rf venv
PATH=$PATH:/root/.cargo/bin/
$PYTHON_INTERPRETER -m venv venv
. venv/bin/activate
Expand All @@ -127,7 +133,7 @@ commands:
- save_cache:
paths:
- ./venv
key: v23-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum
key: v24-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum
"requirements.txt" }}

wait_for_postgres:
Expand Down Expand Up @@ -200,6 +206,7 @@ jobs:
IRRD_REDIS_URL: 'redis://localhost'
PYTHON_INTERPRETER: python3
SUDO: sudo
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

- image: cimg/postgres:<< parameters.postgres_version >>
environment:
Expand Down Expand Up @@ -236,6 +243,7 @@ jobs:
IRRD_REDIS_URL: 'redis://localhost'
PYTHON_INTERPRETER: pypy3
SUDO: ''
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

- image: cimg/postgres:<< parameters.postgres_version >>
environment:
Expand Down Expand Up @@ -274,6 +282,7 @@ jobs:
IRRD_REDIS_URL_INTEGRATION_2: 'redis://localhost/5'
PYTHON_INTERPRETER: python3
SUDO: sudo
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

- image: cimg/postgres:<< parameters.postgres_version >>
environment:
Expand Down Expand Up @@ -313,6 +322,7 @@ jobs:
IRRD_REDIS_URL_INTEGRATION_2: 'redis://localhost/5'
PYTHON_INTERPRETER: pypy3
SUDO: ''
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

- image: cimg/postgres:<< parameters.postgres_version >>
environment:
Expand Down
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,17 @@ pytest-asyncio==0.20.3
freezegun==1.2.2
pytest-freezegun==0.4.2
asyncmock==0.4.2; python_version < '3.8'
anyio==3.7.1

# Documentation generation
Sphinx==4.3.2 # pyup: <4.4 # importlib-metadata conflict with flake8
sphinxcontrib-spelling==7.7.0
sphinx-material==0.0.35
sphinxcontrib-applehelp==1.0.2 # https://github.com/googleapis/sphinx-docfx-yaml/issues/344
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5

# Code style and type checks
mypy==1.0.0; platform_python_implementation == "CPython"
Expand Down

0 comments on commit 73ecd11

Please sign in to comment.