Skip to content

Commit f2e7644

Browse files
committed
🧪 Demonstrate #2050 Fedora runtime failures
1 parent d8011e7 commit f2e7644

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2+
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
3+
---
4+
5+
name: Fedora dev env
6+
7+
on:
8+
push:
9+
branches:
10+
- master
11+
- nedbat/*
12+
pull_request:
13+
workflow_dispatch:
14+
15+
defaults:
16+
run:
17+
shell: bash
18+
19+
env:
20+
PIP_DISABLE_PIP_VERSION_CHECK: 1
21+
COVERAGE_IGOR_VERBOSE: 1
22+
FORCE_COLOR: 1 # Get colored pytest output
23+
24+
permissions:
25+
contents: read
26+
27+
concurrency:
28+
group: "${{ github.workflow }}-${{ github.ref }}"
29+
cancel-in-progress: true
30+
31+
jobs:
32+
smoke:
33+
name: Smoke test
34+
container: fedora:43
35+
runs-on: ubuntu-24.04
36+
timeout-minutes: 15 # takes under 10 min on a laptop
37+
38+
steps:
39+
- name: Install dependencies
40+
run: >-
41+
dnf install -y
42+
gcc git python3.13-freethreading python3.14-freethreading tox
43+
44+
- name: Check out the repo
45+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
46+
with:
47+
persist-credentials: false
48+
49+
- name: Show environment
50+
run: |
51+
set -xe
52+
python -VV
53+
python -m site
54+
# For extreme debugging:
55+
# python -c "import urllib.request as r; exec(r.urlopen('https://bit.ly/pydoctor').read())"
56+
env | sort
57+
# Ideally, the system Python wouldn't have writable sitepackages so
58+
# try to make it not writable. We can't always always change the
59+
# permissions (Ubuntu & Windows yes, Mac no), so be ready for it to fail.
60+
chmod u-w $(python -c "import site; print(site.getsitepackages()[0])") || echo "Couldn't lock down site-packages"
61+
ls -ld $(python -c "import site; print(site.getsitepackages()[0])")
62+
whoami
63+
64+
- name: Provision tox envs
65+
run: |
66+
python -Im tox run --notest
67+
68+
- name: Run tox
69+
run: |
70+
python -Im tox run
71+
72+
...

0 commit comments

Comments
 (0)