Repository navigation
74 lines (66 loc) · 2.69 KB
/
Copy pathpython-versions.yml
File metadata and controls
74 lines (66 loc) · 2.69 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# -*- coding: utf-8 -*-
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This file is part of PyHOPE
#
# Copyright (c) 2024 - 2026 Numerics Research Group, University of Stuttgart, Prof. Andrea Beck
#
# PyHOPE is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# PyHOPE is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# PyHOPE. If not, see <http://www.gnu.org/licenses/>.
# ==================================================================================================================================
# Continuous Integration/Continuous Deployment
# ==================================================================================================================================
# Workflow for continuous integration (CI)
name: Python Versions
on:
# Runs on weekly schedule
schedule:
- cron: '0 0 * * 1'
# Allows running this workflow manually from the Actions tab
workflow_dispatch:
# Permissions
permissions:
contents: write
pull-requests: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued
concurrency:
group: update-python-versions
cancel-in-progress: true
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Update Python versions
# ----------------------------------------------------------------------------------------------------------------------------------------------------
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
# Prepare the image
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: '3.x'
# Run the update script
- name: Update Python versions
run: python3 .github/scripts/python_versions.py
# Create pull request
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
add-paths: |
.github/workflows/ci.yml
.gitlab-ci.yml
commit-message: 'CI/CD: Update Python versions'
title: 'CI/CD: Update Python versions'
body: 'Automated update of the Python base images to the latest patch releases.'
branch: cicd.python.autoupdate
delete-branch: true