Skip to content

Commit

Permalink
Update CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
bstaletic committed Aug 7, 2024
1 parent 52618ae commit 5d8a7fe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,29 @@ jobs:
strategy:
fail-fast: false
matrix:
runs-on: [ ubuntu-20.04, macos-12, windows-2019 ]
runs-on: [ ubuntu-24.04, macos-14, windows-2019 ]
python-arch: [ 'x64' ]
python-version: [ '3.8' ]
include:
- runs-on: macos-14
python-arch: 'arm64'
- runs-on: windows-2019
python-arch: 'x86'
python-version: '3.9'
- runs-on: windows-2019
python-arch: 'x64'
python-version: '3.9'
exclude:
- runs-on: windows-2019
python-arch: 'x64'
python-version: '3.8'
- runs-on: macos-14
python-arch: "x64"
env:
COVERAGE: true
name: "${{ matrix.runs-on }} - Python ${{ matrix.python-version }} ${{ matrix.python-arch }}"
name: "${{ matrix.runs-on }} - Python 3.9 ${{ matrix.python-arch }}"
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "3.9"
architecture: ${{ matrix.python-arch }}
- name: Run pip
run: python3 -m pip install -r python/test_requirements.txt
Expand All @@ -47,9 +43,9 @@ jobs:
- name: summarise coverage
run: coverage xml
- name: Upload coverage data
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
name: "${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.python-arch }}"
name: "${{ runner.os }}-3.9-${{ matrix.python-arch }}"
token: ${{ secrets.CODECOV_TOKEN }}

vim-tests:
Expand All @@ -65,14 +61,14 @@ jobs:
YCM_TEST_STDOUT: true
name: "Vim tests - ${{ matrix.vim }}"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install dependencies
run: sudo -H pip3 install -r python/test_requirements.txt
- name: Install Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
Expand All @@ -88,7 +84,7 @@ jobs:
- name: Combine and summarise coverage
run: coverage combine && coverage xml
- name: Upload coverage data
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
name: "vim-tests-${{ matrix.vim }}"
token: ${{ secrets.CODECOV_TOKEN }}
16 changes: 8 additions & 8 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ queue_rules:
- name: default
# These define the conditions to get out of the merge queue
conditions:
- status-success=ubuntu-20.04 - Python 3.8 x64
- status-success=macos-12 - Python 3.8 x64
- status-success=ubuntu-24.04 - Python 3.9 x64
- status-success=macos-14 - Python 3.9 arm64
- status-success=windows-2019 - Python 3.9 x64
- status-success=windows-2019 - Python 3.9 x86
- status-success=Vim tests - new
Expand All @@ -15,8 +15,8 @@ pull_request_rules:
conditions:
- base=master
- "#approved-reviews-by>=2"
- status-success=ubuntu-20.04 - Python 3.8 x64
- status-success=macos-12 - Python 3.8 x64
- status-success=ubuntu-24.04 - Python 3.9 x64
- status-success=macos-14 - Python 3.9 arm64
- status-success=windows-2019 - Python 3.9 x64
- status-success=windows-2019 - Python 3.9 x86
- status-success=Vim tests - new
Expand All @@ -32,8 +32,8 @@ pull_request_rules:
- name: Manual merge on Azure Pipelines and Maintainer Override
conditions:
- base=master
- status-success=ubuntu-20.04 - Python 3.8 x64
- status-success=macos-12 - Python 3.8 x64
- status-success=ubuntu-24.04 - Python 3.9 x64
- status-success=macos-14 - Python 3.9 arm64
- status-success=windows-2019 - Python 3.9 x64
- status-success=windows-2019 - Python 3.9 x86
- status-success=Vim tests - new
Expand All @@ -50,8 +50,8 @@ pull_request_rules:
conditions:
- base=master
- author=puremourning
- status-success=ubuntu-20.04 - Python 3.8 x64
- status-success=macos-12 - Python 3.8 x64
- status-success=ubuntu-24.04 - Python 3.9 x64
- status-success=macos-14 - Python 3.9 arm64
- status-success=windows-2019 - Python 3.9 x64
- status-success=windows-2019 - Python 3.9 x86
- status-success=Vim tests - new
Expand Down

0 comments on commit 5d8a7fe

Please sign in to comment.