From 551af6fec311e434ca5b79c325299301d6293806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tenn=C3=A9?= Date: Fri, 19 Mar 2021 09:40:05 +0100 Subject: [PATCH] Remove unused GA workflow --- .github/workflows/python-bdist.yml | 135 ------------------ .../{testing.yml => test_and_deploy.yml} | 0 2 files changed, 135 deletions(-) delete mode 100644 .github/workflows/python-bdist.yml rename .github/workflows/{testing.yml => test_and_deploy.yml} (100%) diff --git a/.github/workflows/python-bdist.yml b/.github/workflows/python-bdist.yml deleted file mode 100644 index 26f00befd4..0000000000 --- a/.github/workflows/python-bdist.yml +++ /dev/null @@ -1,135 +0,0 @@ -name: Python Binary Distribution - -on: [push] - -jobs: - build-test-cmake: - name: CMake - - strategy: - fail-fast: false - matrix: - os: ['ubuntu-latest', 'macos-latest'] - - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v2 - - - name: Install Ubuntu dependencies - if: matrix.os == 'ubuntu-latest' - run: | - sudo apt-get update -y - sudo apt-get install -y valgrind - - - name: Build libecl - run: | - git clone https://github.com/equinor/libecl - mkdir libecl/build - cmake -S libecl -B libecl/build - sudo cmake --build libecl/build --target install - sudo rm -rf libecl - - - name: Build libres - run: | - mkdir cmake-build - cmake -S . -B cmake-build \ - -DBUILD_TESTS=ON \ - -DRES_VERSION=1.2.3 \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo - cmake --build cmake-build - - - name: Run tests - run: | - cd cmake-build - export PATH=$PWD/bin:$PATH - ctest --output-on-failure - - - build-test-wheel: - name: Python - - strategy: - fail-fast: false - matrix: - os: ['ubuntu-latest', 'macos-latest'] - python: ['3.6', '3.7', '3.8'] - - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v2 - - - name: Build Linux Wheel - uses: docker://quay.io/pypa/manylinux2010_x86_64 - with: - entrypoint: /github/workspace/ci/github/build_linux_wheel.sh - args: ${{ matrix.python }} - if: matrix.os == 'ubuntu-latest' - - - name: Setup Python - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python }} - - - name: Build macOS Wheel - run: pip wheel . --no-deps -w dist - if: matrix.os == 'macos-latest' - - - name: Upload wheel as artifact - uses: actions/upload-artifact@v2 - with: - name: ${{ matrix.os }} Python ${{ matrix.python }} wheel - path: dist/* - - - name: Install libres - run: pip install dist/* - - - name: Run Python tests - run: | - # pytest adds every directory up-to and including python/ into sys.path, - # meaning that "import res" will import python/res and not the installed - # one. This doesn't work because the libecl.so library only exists in - # site-packages, so we copy directories required by the tests out into its - # own temporary directory. - mkdir test-run; cd test-run - mkdir -p {.git,python} - ln -s {..,$PWD}/bin - ln -s {..,$PWD}/lib - ln -s {..,$PWD}/test-data - ln -s {..,$PWD}/share - cp -R {..,$PWD}/tests - - # Env vars - export ECL_SKIP_SIGNAL=1 - export ERT_SHOW_BACKTRACE=1 - - # Run tests - python -m pip install -r ../test_requirements.txt - python -m pytest tests - - - publish: - name: Publish to PyPI - runs-on: ubuntu-latest - needs: [build-test-wheel] - - # If this is a tagged release - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - - steps: - - name: Get wheels - uses: actions/download-artifact@v2 - with: - path: artifacts - - - name: Move to dist/ - run: | - mkdir dist - find artifacts -name "*.whl" -exec mv '{}' dist/ \; - - - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.3.1 - with: - user: statoil-travis - password: ${{ secrets.pypi_password }} diff --git a/.github/workflows/testing.yml b/.github/workflows/test_and_deploy.yml similarity index 100% rename from .github/workflows/testing.yml rename to .github/workflows/test_and_deploy.yml