Skip to content

Commit b2fff97

Browse files
committed
Fix formatting in CHANGELOG and cleanup CI builds workflows
1 parent ff757e7 commit b2fff97

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,13 @@ jobs:
210210
centos:
211211
- 7 # GCC 4.8
212212
- 8
213+
include:
214+
- centos: 7
215+
python_pkg: rh-python38-python-pip rh-python38-python-devel
216+
enable_repo: --enablerepo=centos-sclo-rh
217+
- centos: 8
218+
python_pkg: python38-devel
219+
213220

214221
name: "Python 3 • CentOS ${{ matrix.centos }} • x64"
215222
container: "centos:${{ matrix.centos }}"
@@ -232,12 +239,18 @@ jobs:
232239
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
233240
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
234241
235-
- name: Add Python 3 and other dependencies
236-
run: yum update -y && yum install -y python3-devel gcc-c++ make
242+
- name: Update YUM/DNF
243+
run: yum update -y
237244

238-
- name: Setup Endpoint repository (CentOS 7 only)
245+
- name: Enable extra repositories && modify PATH (CentOS 7)
239246
if: matrix.centos == 7
240-
run: yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
247+
run: |
248+
yum install -y centos-release-scl-rh
249+
yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
250+
echo '/opt/rh/rh-python38/root/usr/bin' >> $GITHUB_PATH
251+
252+
- name: Add Python 3 and other dependencies
253+
run: yum install -y ${{ matrix.enable_repo }} ${{ matrix.python_pkg }} gcc-c++ make
241254

242255
- name: Install Git > 2.18
243256
run: |
@@ -259,12 +272,9 @@ jobs:
259272
uses: actions/cache@v3
260273
with:
261274
path: ~/.cache/pip
262-
key: ${{ runner.os }}-centos${{ matrix.centos }}-pip-${{ hashFiles('**/setup.cfg') }}
275+
key: ${{ runner.os }}-centos${{ matrix.centos }}-pip-${{ hashFiles('**/setup.cfg', '**/pyproject.toml') }}
263276
restore-keys: ${{ runner.os }}-centos-pip-
264277

265-
- name: Update pip
266-
run: python3 -m pip install --upgrade pip
267-
268278
- name: Install dependencies
269279
run: |
270280
python3 -m pip install -U pip setuptools wheel
@@ -288,16 +298,6 @@ jobs:
288298
steps:
289299
- uses: actions/checkout@v3
290300

291-
- name: Create pip cache dir
292-
run: mkdir -p ~/.cache/pip
293-
294-
- name: Cache wheels
295-
uses: actions/cache@v3
296-
with:
297-
path: ~/.cache/pip
298-
key: ${{ runner.os }}-doc-pip-${{ hashFiles('**/setup.cfg') }}
299-
restore-keys: ${{ runner.os }}-doc-pip-
300-
301301
- name: Get history and tags for SCM versioning to work
302302
if: ${{ !env.ACT }}
303303
run: |
@@ -308,6 +308,10 @@ jobs:
308308
with:
309309
python-version: '3.x'
310310
architecture: 'x64'
311+
cache: 'pip'
312+
cache-dependency-path: |
313+
setup.cfg
314+
pyproject.toml
311315
312316
- name: Install docs & setup requirements
313317
run: |

CHANGELOG.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,19 +223,11 @@ The ProjectQ v0.5.x release branch is the last one that is guaranteed to work wi
223223

224224
Future releases might introduce changes that will require Python 3.5 (Python 3.4 and earlier have already been declared deprecated at the time of this writing)
225225

226-
<<<<<<< HEAD
227-
[Unreleased]: https://github.com/ProjectQ-Framework/ProjectQ/compare/v0.7.3...HEAD
228-
229-
[v0.7.3]: https://github.com/ProjectQ-Framework/ProjectQ/compare/v0.7.2...v0.7.3
230-
||||||| 41e608d
231-
[Unreleased]: https://github.com/ProjectQ-Framework/ProjectQ/compare/v0.7.2...HEAD
232-
=======
233226
[Unreleased]: https://github.com/ProjectQ-Framework/ProjectQ/compare/v0.8.0...HEAD
234227

235228
[v0.8.0]: https://github.com/ProjectQ-Framework/ProjectQ/compare/v0.7.3...v0.8.0
236229

237230
[v0.7.3]: https://github.com/ProjectQ-Framework/ProjectQ/compare/v0.7.2...v0.7.3
238-
>>>>>>> master
239231

240232
[v0.7.2]: https://github.com/ProjectQ-Framework/ProjectQ/compare/v0.7.1...v0.7.2
241233

0 commit comments

Comments
 (0)