@@ -2,9 +2,6 @@ name: Continous integration
22
33on :
44 pull_request :
5- paths-ignore :
6- - ' docs/**'
7- - ' *.rst'
85 push :
96 branches :
107 - develop
1613 lint :
1714 runs-on : ubuntu-latest
1815 steps :
19- - uses : actions/checkout@v2.3.4
16+ - uses : actions/checkout@v4
2017 with :
2118 submodules : recursive
2219 - name : Set up Python 3.8
3633 - twine_check
3734 runs-on : ubuntu-latest
3835 steps :
39- - uses : actions/checkout@v2.3.4
36+ - uses : actions/checkout@v4
4037 with :
4138 submodules : recursive
4239 - name : Set up Python 3.8
@@ -67,12 +64,14 @@ jobs:
6764 - " pypy-3.10"
6865 os : ["ubuntu-latest"]
6966 include :
70- - os : " macos-latest"
71- python-version : 3.8
67+ - os : " macos-13"
68+ python-version : " 3.8"
69+ - os : " macos-14"
70+ python-version : " 3.10"
7271 - os : " windows-latest"
73- python-version : 3.8
72+ python-version : " 3.8"
7473 steps :
75- - uses : actions/checkout@v2.3.4
74+ - uses : actions/checkout@v4
7675 with :
7776 submodules : recursive
7877 - name : Set up Python ${{ matrix.python-version }}
@@ -108,7 +107,7 @@ jobs:
108107 python_version :
109108 - " 3.8"
110109 steps :
111- - uses : actions/checkout@v2.3.4
110+ - uses : actions/checkout@v4
112111 with :
113112 submodules : recursive
114113@@ -117,7 +116,11 @@ jobs:
117116 arch : none
118117 distro : none
119118 base_image : " --platform=linux/arm64 quay.io/pypa/manylinux2014_aarch64"
119+ # versioningit needs an accessible git repository but the container
120+ # is run as root, which is different from the repository user.
121+ # use git config to override this.
120122 run : |-
123+ git config --global --add safe.directory $PWD
121124 CFLAGS="-DNDEBUG -g0" python${{matrix.python_version}} -m pip install . pytest
122125 python${{matrix.python_version}} -m pytest tests
123126
@@ -132,17 +135,17 @@ jobs:
132135 shell : bash -l {0}
133136 strategy :
134137 matrix :
135- os : ["ubuntu-latest", "macos-latest ", "windows-latest"]
138+ os : ["ubuntu-latest", "macos-13 ", "windows-latest"]
136139 python_version : [ "python" ]
137140 include :
138141 - os : " ubuntu-latest"
139142 python_version : " pypy"
140143 steps :
141- - uses : actions/checkout@v2.3.4
144+ - uses : actions/checkout@v4
142145 with :
143146 submodules : recursive
144147 - name : Install miniconda.
145- uses : conda-incubator/setup-miniconda@v2.0.1 # https://github.com/conda-incubator/setup-miniconda.
148+ uses : conda-incubator/setup-miniconda@v3 # https://github.com/conda-incubator/setup-miniconda.
146149 with :
147150 channels : conda-forge,defaults
148151 - name : Install requirements (universal)
@@ -168,7 +171,8 @@ jobs:
168171 matrix :
169172 os :
170173 - ubuntu-latest
171- - macos-latest
174+ - macos-13
175+ - macos-14
172176 - windows-latest
173177 cibw_archs_linux : ["x86_64"]
174178 cibw_before_all_linux :
@@ -186,9 +190,10 @@ jobs:
186190 cibw_archs_linux : " aarch64"
187191 cibw_before_all_linux : " true" # The true command exits with 0
188192 steps :
189- - uses : actions/checkout@v2.3.4
193+ - uses : actions/checkout@v4
190194 with :
191195 submodules : recursive
196+ fetch-depth : 0 # Fetch everything to get accurately versioned tag.
192197 - uses : actions/setup-python@v2
193198 name : Install Python
194199 - name : Install cibuildwheel twine wheel
0 commit comments