Тёмный

How to Build Python Flask Application with GitHub Actions CI CD 

Clark Ngo
Подписаться 878
Просмотров 1,7 тыс.
50% 1

#cicd #githubactions #flask #python #github #microsoft #continuousintegration
This video has no explanation and goes straight to integrating GitHub Actions.
Clone the repo and play around: github.com/cla...
To automatically have GitHub Actions pick up your CI CD script, add .github/workflows/main.yml file.
name: Flask CI
triggers on push. you can do trigger with a pull request.
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Create virtual environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
optional
- name: Print debugging information
run: |
echo "Python Version: $(python --version)"
echo "Working Directory: $(pwd)"
echo "Contents of Working Directory: $(ls -l)"
echo "Contents of site-packages: $(ls -l venv/lib/python*/site-packages)"
Run your test. Failed tests will fail the build.
- name: Run tests
run: python test_hello.py

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1   
@collinscisiwu
@collinscisiwu 2 месяца назад
Straight to the point 👌
Далее
Chapter 10 demo
23:33
Просмотров 73
🦊🔥
00:16
Просмотров 308 тыс.
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
Run Python in GitHub Actions
14:55
Просмотров 9 тыс.
How To Setup Github Actions For CI/CD
20:27
Просмотров 32 тыс.
Legal Or Illegal Back Row Attack; In Or Out
2:08
Просмотров 6 тыс.
Deployment & Docker - Flask Tutorial Series #10
14:50
Просмотров 4,6 тыс.
🦊🔥
00:16
Просмотров 308 тыс.