From d91663a428cbfee1041799cc0b5a6d87cc831e46 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Mon, 6 May 2024 10:41:38 +0200 Subject: [PATCH] Comment FreeBSD test (not working) and upgrade CI --- .github/workflows/codeql-analysis.yml | 6 ++--- .github/workflows/test.yml | 39 +++++++++++++++------------ 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 6d0df601..2d2ea63e 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -26,7 +26,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -37,7 +37,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -51,4 +51,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ffc6ad38..b7836ca4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,9 +20,10 @@ jobs: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: 'pip' - name: Install dependencies run: | @@ -66,9 +67,10 @@ jobs: # - uses: actions/checkout@v4 # - name: Set up Python ${{ matrix.python-version }} - # uses: actions/setup-python@v4 + # uses: actions/setup-python@v5 # with: # python-version: ${{ matrix.python-version }} + # cache: 'pip' # - name: Install dependencies # run: | @@ -93,9 +95,10 @@ jobs: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: 'pip' - name: Install dependencies run: | @@ -106,21 +109,23 @@ jobs: run: | python ./unitest.py - test-freebsd: + # Error when trying to implement #2749 + # pkg: No packages available to install matching 'py-pip' have been found in the repositories + # test-freebsd: - runs-on: ubuntu-22.04 + # runs-on: ubuntu-22.04 - steps: + # steps: - - uses: actions/checkout@v4 + # - uses: actions/checkout@v4 - - name: Run tests - uses: vmactions/freebsd-vm@v1 - with: - usesh: true - prepare: | - pkg install -y python3 py-pip - run: | - set -e -x - python3 -m pip install --user -r requirements.txt - python ./unitest.py + # - name: Run tests + # uses: vmactions/freebsd-vm@v1 + # with: + # usesh: true + # prepare: | + # pkg install -y python3 py-pip + # run: | + # set -e -x + # python3 -m pip install --user -r requirements.txt + # python ./unitest.py