Skip to content

Commit b301954

Browse files
committed
Base commit for CI changes
Signed-off-by: Ales Raszka <araszka@redhat.com>
1 parent 9b58836 commit b301954

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,22 @@ jobs:
2020
with:
2121
ref: ${{ github.event.pull_request.head.sha || github.sha }}
2222

23-
- name: Set up PDM
24-
uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4.4
23+
- name: Setup Python
24+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2525
with:
2626
python-version: "3.13"
2727

28+
- name: Set up poetry
29+
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
30+
with:
31+
poetry-version: "2.3.1"
32+
33+
- name: Install dependencies
34+
run: |
35+
poetry config virtualenvs.in-project true
36+
37+
poetry install --no-interaction
38+
2839
- name: Install non-python dependencies
2940
run: |
3041
sudo apt-get update && sudo apt-get install -y libkrb5-dev
@@ -35,14 +46,9 @@ jobs:
3546
/home/linuxbrew/.linuxbrew/bin/brew install hadolint
3647
sudo ln -s /home/linuxbrew/.linuxbrew/bin/hadolint /usr/bin/
3748
38-
- name: Install Python dependencies
39-
run: |
40-
pdm sync -dG tox
41-
pipx install ansible-lint
42-
4349
- name: Run Tests
4450
run: |
45-
pdm run -v tox
51+
poetry run tox
4652
4753
build:
4854
name: Build and push image
@@ -69,7 +75,7 @@ jobs:
6975
image: operator-pipelines-images
7076
tags: ${{ steps.set-vars.outputs.tags }}
7177
dockerfiles: |
72-
./operator-pipeline-images/Dockerfile
78+
./Dockerfile
7379
7480
- name: Push To quay.io
7581
id: push-to-quay
@@ -114,7 +120,7 @@ jobs:
114120
pipx inject ansible-core jmespath openshift pygithub
115121
116122
# Add certificates to trusted list
117-
sudo cp operator-pipeline-images/certs/* /usr/local/share/ca-certificates
123+
sudo cp certs/* /usr/local/share/ca-certificates
118124
# Rename all .pem files to .crt to allow update-ca-certificates
119125
for file in /usr/local/share/ca-certificates/*.pem
120126
do

0 commit comments

Comments
 (0)