Skip to content

prepare for more smart pointer types (and smart pointers wrapped in p… #244

prepare for more smart pointer types (and smart pointers wrapped in p…

prepare for more smart pointer types (and smart pointers wrapped in p… #244

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python application
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
clang_old_build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Install package
run: |
pip install -v .
- name: Remove directories (avoid importing uninstalled module)
run: |
rm -rf ./ceto && rm -rf ./include && rm -rf ./selfhost
- name: Test with pytest
run: |
clang++ -v && pytest -s
env:
CXX: clang++
clang_16_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 16
python -m pip install --upgrade pip
pip install flake8 pytest
- name: Install package
run: |
pip install -v .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
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 --statistics --max-line-length=127
- name: Remove directories (avoid importing uninstalled module)
run: |
rm -rf ./ceto && rm -rf ./include && rm -rf ./selfhost
- name: Test with pytest
run: |
pytest -s
env:
CXX: clang++-16
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ceto-artifact-clang-16-ubuntu
path: ./ceto
clang_18_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
python -m pip install --upgrade pip
pip install pytest
- name: Install package
run: |
pip install -v .
- name: Remove directories (avoid importing uninstalled module)
run: |
rm -rf ./ceto && rm -rf ./include && rm -rf ./selfhost
- name: Test with pytest
run: |
pytest -s
env:
CXX: clang++
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ceto-artifact-clang-18-ubuntu
path: ./ceto
gcc_12_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
sudo apt install gcc-12 g++-12
python -m pip install --upgrade pip
pip install pytest
- name: Install package
run: |
pip install -v .
- name: Remove directories (avoid importing uninstalled module)
run: |
rm -rf ./ceto && rm -rf ./include && rm -rf ./selfhost
- name: Test with pytest
run: |
pytest -s
env:
CXX: g++-12
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ceto-artifact-gcc-12-ubuntu
path: ./ceto
msvc_build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Install package
run: |
pip install -v .
- name: Remove directories (avoid importing uninstalled module)
run: |
rm -rf ./ceto && rm -rf ./include && rm -rf ./selfhost
shell:
bash
- name: Test with pytest
run: |
pytest -s
env:
CXX: cl
PYTHONUTF8: 1
#esp.extensions:cppcorecheck.dll