Skip to content

Commit

Permalink
changing github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciacatandi committed Apr 19, 2024
1 parent 31d87e2 commit acfd05f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- name: Install Python dependencies for deploying
run: |-
pip install -U pip poetry
pip install -U pip "poetry<1.8.0"
poetry config virtualenvs.create false
poetry install --with dev --with ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd_staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Install Python dependencies for deploying
run: |-
pip install -U pip poetry
pip install -U pip "poetry<1.8.0"
poetry config virtualenvs.create false
poetry install --with dev --with ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-tree-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Install Python dependencies for deploying
run: |-
pip install -U pip poetry
pip install -U pip "poetry<1.8.0"
poetry config virtualenvs.create false
poetry install --with dev --with ci
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf
with:
dockerfile: Dockerfile
ignore: DL3008

- name: Set up Python
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e
Expand All @@ -23,12 +24,12 @@ jobs:

- name: Set up Poetry and upgrade pip
run: |
pip install -U pip poetry
pip install -U pip "poetry<1.8.0"
- name: Install dependencies
run: |
poetry config virtualenvs.create false && poetry install --with dev --with ci
- name: Lint with black, isort and flake8
run: |
task lint
task lint
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build arguments
ARG PYTHON_VERSION=3.10-slim
ARG PYTHON_VERSION=3.10-slim-buster

# Get Oracle Instant Client
FROM curlimages/curl:7.81.0 as curl-step
Expand All @@ -16,12 +16,18 @@ RUN apt-get update && \

# Start Python image
FROM python:${PYTHON_VERSION}
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Install git
# Install a few dependencies
RUN apt-get update && \
apt-get install -y git && \
apt-get install --no-install-recommends -y git curl gnupg2 libaio1 && \
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
echo "deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/debian/12/prod bookworm main" > /etc/apt/sources.list.d/mssql-release.list && \
apt-get update && \
ACCEPT_EULA=Y apt-get install --no-install-recommends -y git msodbcsql17 openssl unixodbc-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY ./openssl.cnf /etc/ssl/openssl.cnf

# Setting environment with prefect version
ARG PREFECT_VERSION=1.4.1
Expand Down

0 comments on commit acfd05f

Please sign in to comment.