Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
fedora-python-tox/.github/workflows/build-and-push.yml at master · fedora-python/fedora-python-tox · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
fedora-python
/
fedora-python-tox
Public
Notifications
You must be signed in to change notification settings
Fork
5
Star
11
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
fedora-python-tox
/
.github
/
workflows
/
build-and-push.yml
Copy path
View runs
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
152 lines (131 loc) · 5.54 KB
master
Breadcrumbs
fedora-python-tox
/
.github
/
workflows
/
build-and-push.yml
Copy path
Top
File metadata and controls
Code
Blame
152 lines (131 loc) · 5.54 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name
:
Build, test and push container images
on
:
push
:
branches
:
-
'
master
'
pull_request
:
branches
:
-
'
master
'
schedule
:
-
cron
:
'
48 23 * * 6
'
workflow_dispatch
:
env
:
FEDORA_VERSION
:
43
jobs
:
build-test-and-push
:
name
:
Build, test and push
runs-on
:
ubuntu-latest
strategy
:
matrix
:
include
:
-
arch
:
amd64
toxenv
:
py36,py39,py310,py311,py312,py313,py314,py315,py314t,py315t,pypy,pypy39,pypy310,pypy311
-
arch
:
arm64
toxenv
:
py312
-
arch
:
ppc64le
toxenv
:
py39,py311
-
arch
:
s390x
toxenv
:
py39,py310,py312
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v4
with
:
submodules
:
true
-
name
:
Set up QEMU
uses
:
docker/setup-qemu-action@v3
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v3
-
name
:
Build image for testing
uses
:
docker/build-push-action@v6
with
:
context
:
.
platforms
:
linux/${{ matrix.arch }}
load
:
true
tags
:
|
fedorapython/fedora-python-tox:${{ matrix.arch }}
-
name
:
Test local project
env
:
TOXENV
:
${{ matrix.toxenv }}
run
:
|
docker run --rm --platform linux/${{ matrix.arch }} -v $PWD/example_project:/src -w /src -e TOXENV fedorapython/fedora-python-tox:${{ matrix.arch }}
-
name
:
Test remote project
env
:
TOXENV
:
${{ matrix.toxenv }}
run
:
|
docker run --rm --platform linux/${{ matrix.arch }} -e TOXENV -e GIT_URL=https://github.com/frenzymadness/python-tox-example.git fedorapython/fedora-python-tox:${{ matrix.arch }}
-
name
:
Test parallel run
env
:
TOXENV
:
${{ matrix.toxenv }}
run
:
|
docker run --rm --platform linux/${{ matrix.arch }} -v $PWD/example_project:/src -w /src -e TOXENV -e TOX_PARAMS="-p auto" fedorapython/fedora-python-tox:${{ matrix.arch }}
-
name
:
Test dnf install and wheel build
env
:
TOXENV
:
${{ matrix.toxenv }}
run
:
|
docker run --rm --platform linux/${{ matrix.arch }} -e DNF_INSTALL="libffi-devel 'pkgconfig(libgit2) >= 1.9' /usr/bin/cowsay" fedorapython/fedora-python-tox:${{ matrix.arch }} sh -c "/run_tests.sh; pip install -I --no-deps --compile --no-binary :all: cffi pygit2~=1.17.0 && cowsay DONE"
-
name
:
Test external project with WORKDIR
run
:
|
docker run --rm --platform linux/${{ matrix.arch }} -e TOXENV=py3 -e GIT_URL=https://github.com/frenzymadness/nflxprofile.git -e WORKDIR=python fedorapython/fedora-python-tox:${{ matrix.arch }}
-
name
:
Login to DockerHub
uses
:
docker/login-action@v3
if
:
github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
with
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
-
name
:
Build and push platform-specific images
uses
:
docker/build-push-action@v6
if
:
github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
with
:
context
:
.
platforms
:
linux/${{ matrix.arch }}
push
:
true
tags
:
|
fedorapython/fedora-python-tox:${{ matrix.arch }}
fedorapython/fedora-python-tox:${{ matrix.arch }}-f${{ env.FEDORA_VERSION }}
release
:
name
:
Create multi-platform manifests
if
:
github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
needs
:
build-test-and-push
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v3
-
name
:
Login to DockerHub
uses
:
docker/login-action@v3
with
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
-
name
:
Create and push multi-platform manifest for :latest
run
:
|
docker buildx imagetools create -t fedorapython/fedora-python-tox:latest \
fedorapython/fedora-python-tox:amd64 \
fedorapython/fedora-python-tox:arm64 \
fedorapython/fedora-python-tox:ppc64le \
fedorapython/fedora-python-tox:s390x
-
name
:
Create and push multi-platform manifest for :f${{ env.FEDORA_VERSION }}
run
:
|
docker buildx imagetools create -t fedorapython/fedora-python-tox:f${{ env.FEDORA_VERSION }} \
fedorapython/fedora-python-tox:amd64-f${{ env.FEDORA_VERSION }} \
fedorapython/fedora-python-tox:arm64-f${{ env.FEDORA_VERSION }} \
fedorapython/fedora-python-tox:ppc64le-f${{ env.FEDORA_VERSION }} \
fedorapython/fedora-python-tox:s390x-f${{ env.FEDORA_VERSION }}
-
name
:
Verify :latest manifest
run
:
|
docker buildx imagetools inspect fedorapython/fedora-python-tox:latest
-
name
:
Verify :f${{ env.FEDORA_VERSION }} manifest
run
:
|
docker buildx imagetools inspect fedorapython/fedora-python-tox:f${{ env.FEDORA_VERSION }}
description_update
:
name
:
Update Dockerhub description
if
:
github.event_name == 'push'
needs
:
release
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v4
-
name
:
Update Dockerhub description
uses
:
peter-evans/dockerhub-description@v4
with
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
repository
:
fedorapython/fedora-python-tox
You can’t perform that action at this time.