-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.09 KB
/
roles_python_files_flask.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: roles_python_files_flask
on:
push:
paths:
- roles/python/files/flask/**
- .github/workflows/roles_python_files_flask.yaml
jobs:
ci:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: 3.11 # renovate: datasource=docker depName=python versioning=docker
IMAGE: ghcr.io/${{ github.repository }}-flask
steps:
- name: Setup python
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Clone repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Install dependencies
run: pip install -r requirements.txt
- name: Set PUSH_IMAGE
if: endsWith(github.ref, '/master')
run: echo "PUSH_IMAGE=True" >> $GITHUB_ENV
- uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run CI
run: python roles/python/files/flask/ci.py