From fb235ac383219f507d9a88b0b62d501ebcc33fc8 Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Thu, 17 Nov 2022 09:19:04 -0700 Subject: Update other GH action Python versions, try Mac MacOS build introduced only for experimental features, so far. Signed-off-by: Mats Wichmann --- .github/workflows/experimental_tests.yml | 8 +++++--- .github/workflows/scons-package.yml | 10 ++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/experimental_tests.yml b/.github/workflows/experimental_tests.yml index 52078d5..a205674 100644 --- a/.github/workflows/experimental_tests.yml +++ b/.github/workflows/experimental_tests.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: - os: ['ubuntu-latest', 'windows-latest'] + os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] # The type of runner that the job will run on runs-on: ${{ matrix.os }} @@ -36,15 +36,17 @@ jobs: with: platform: x64 - - name: Set up Python 3.8 ${{ matrix.os }} + - name: Set up Python 3.11 ${{ matrix.os }} uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: '3.11' + - name: Install dependencies including ninja ${{ matrix.os }} run: | python -m pip install --upgrade pip setuptools wheel python -m pip install ninja psutil # sudo apt-get update + - name: Test experimental packages ${{ matrix.os }} run: | python runtest.py test/import.py test/ninja diff --git a/.github/workflows/scons-package.yml b/.github/workflows/scons-package.yml index 91acecb..4c0a148 100644 --- a/.github/workflows/scons-package.yml +++ b/.github/workflows/scons-package.yml @@ -15,10 +15,12 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + + - name: Set up Python 3.10 uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: '3.10' + - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel @@ -28,6 +30,7 @@ jobs: sudo apt-get -y install docbook-xml docbook-xsl xsltproc fop docbook-xsl-doc-pdf # try to keep the texlive install as small as we can to save some time/space sudo apt-get -y --no-install-recommends install texlive biber texmaker ghostscript texlive-latex-base texlive-latex-extra texlive-bibtex-extra texlive-font-utils latexmk + # This is disabled until the run can be configured to only # check the code that matters, else we fail on non-essentials # like the bench/ stuff. @@ -37,14 +40,17 @@ jobs: # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Update Doc sources (some parts are generated) run: | python bin/docs-update-generated.py python bin/docs-validate.py python bin/docs-create-example-outputs.py + - name: Build SCons packages run: | python scripts/scons.py + - name: Verify package run: | ls -l build/dist -- cgit v0.12