File tree Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Original file line number Diff line number Diff line change
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
+ env :
16
+ PIP_DISABLE_PIP_VERSION_CHECK : 1
17
+ FORCE_COLOR : 1 # Get colored pytest output
18
+
19
+ permissions :
20
+ contents : read
21
+
22
+ concurrency :
23
+ group : " ${{ github.workflow }}-${{ github.ref }}"
24
+ cancel-in-progress : true
25
+
26
+ jobs :
27
+ smoke :
28
+ name : Smoke test
29
+ container : fedora:43
30
+ runs-on : ubuntu-24.04
31
+ timeout-minutes : 15 # takes under 10 min on a laptop
32
+
33
+ steps :
34
+ - name : Install dependencies
35
+ run : >-
36
+ dnf install -y
37
+ gcc git python3.13-freethreading python3.14-freethreading tox
38
+
39
+ - name : Check out the repo
40
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
41
+ with :
42
+ persist-credentials : false
43
+
44
+ - name : Show environment
45
+ continue-on-error : true
46
+ run : |
47
+ set -xe
48
+ whoami
49
+ python -VV
50
+ python -m site
51
+ # For extreme debugging:
52
+ # python -c "import urllib.request as r; exec(r.urlopen('https://bit.ly/pydoctor').read())"
53
+ env | sort
54
+ # Ideally, the system Python wouldn't have writable sitepackages so
55
+ # try to make it not writable. We can't always always change the
56
+ # permissions (Ubuntu & Windows yes, Mac no), so be ready for it to fail.
57
+ chmod u-w $(python -c "import site; print(site.getsitepackages()[0])") || echo "Couldn't lock down site-packages"
58
+ ls -ld $(python -c "import site; print(site.getsitepackages()[0])")
59
+
60
+ - name : Provision tox envs
61
+ run : tox run --notest
62
+
63
+ - name : Run tox
64
+ run : tox run
65
+
66
+ ...
You can’t perform that action at this time.
0 commit comments