feat(workflows): Switch base image to node:20-bookworm
Some checks failed
Python Package CI/CD / Setup and Test (push) Failing after 29s
Python Package CI/CD / Publish to PyPI (push) Failing after 16s

Updated the CI/CD pipeline in `.forgejo/workflows/release.yml` to utilize the `node:20-bookworm` image instead of `python:3.10`. This necessitated adding steps for installing Python dependencies, given the switch to a Node.js-based image. This change accommodates projects that require both Node.js and Python environments for their setup and publishing processes, ensuring better compatibility and flexibility in handling mixed-technology stacks.

This update enhances our pipeline's capability to manage dependencies more efficiently across different technologies, catering to the evolving needs of our projects.
This commit is contained in:
Kumi 2024-04-15 18:53:37 +02:00
parent 037acf34b2
commit d57a7367ab
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -10,12 +10,17 @@ jobs:
setup:
name: Setup and Test
container:
image: python:3.10
image: node:20-bookworm
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install dependencies
run: |
apt update
apt install -y python3 python3-venv
- name: Set up Python environment
run: |
python -V
@ -27,12 +32,17 @@ jobs:
publish:
name: Publish to PyPI
container:
image: python:3.10
image: node:20-bookworm
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install dependencies
run: |
apt update
apt install -y python3 python3-venv
- name: Set up Python environment
run: |
python -m venv venv