Skip to content

Commit

Permalink
Remove many linux build temporarily.
Browse files Browse the repository at this point in the history
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
  • Loading branch information
obrix committed Feb 7, 2024
1 parent d73269d commit 2d3ca28
Showing 1 changed file with 0 additions and 95 deletions.
95 changes: 0 additions & 95 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,101 +8,6 @@ on:
- '!main'

jobs:
manylinux_build:
name: Build linux ${{ matrix.python.name }} wheel
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux_2_24_x86_64:2022-12-26-0d38463
strategy:
matrix:
python:
- {
name: cp38,
abi: cp38,
version: '3.8',
}

steps:
- name: Install Linux packages
run: |
echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list
apt-get update
apt install -y wget
- name: Install Maven
run: |
wget https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz -P /tmp
tar xf /tmp/apache-maven-*.tar.gz -C /opt
echo /opt/apache-maven-3.9.6/bin >> $GITHUB_PATH
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: true

- name: Setup path
run: echo "/opt/python/${{ matrix.python.name }}-${{ matrix.python.abi }}/bin/" >> $GITHUB_PATH

- name: Checkout powsybl-optimizer sources
uses: actions/checkout@v1
with:
repository: powsybl/powsybl-optimizer
ref: refs/heads/add_resources_path

- name: Build and install powsybl-optimizer with Maven
run: mvn --batch-mode -DskipTests=true --file ../powsybl-optimizer/pom.xml install

- name: Install dependencies
run: pip3 install -r requirements.txt

- name: Build wheel
run: |
python3 setup.py bdist_wheel
auditwheel repair dist/*.whl
- name: Install wheel
run: pip3 install wheelhouse/*.whl --user

- name: Run tests
working-directory: ./tests # Run in subdir to use installed lib, not sources
run: |
pytest
- name: Type checking
run: mypy -p pypowsybl

- name: Dev install # In order to generate coverage and linting, we need to install in sources
run: |
pip3 uninstall -y pypowsybl
python3 setup.py develop
- name: Generate coverage
run: |
coverage run -m pytest tests/
coverage xml
- name: Linting
run: pylint pypowsybl

- name: Sonar analysis
uses: sonarsource/sonarcloud-github-action@v2.0.2
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: |
-Dsonar.python.coverage.reportPaths=coverage.xml
- name: Run doc examples
working-directory: ./docs
run: make doctest

macos_windows_build:
name: Build ${{ matrix.config.name }} ${{ matrix.python.name }} wheel
runs-on: ${{ matrix.config.os }}
Expand Down

0 comments on commit 2d3ca28

Please sign in to comment.