From 51262958fb6a3a27335d4dc6f4954e17f7140c91 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 1 Aug 2024 14:54:39 +0100 Subject: [PATCH] mod build.yml --- .github/workflows/build.yml | 102 ++++++++++++++++++------------------ 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d48126a..53f7679 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,60 +9,60 @@ on: - v* jobs: - # test: - # runs-on: ${{ matrix.os }} - # strategy: - # matrix: - # python-version: [3.8] - # os: [ubuntu-latest] #ubuntu-latest [macos-latest, ] # + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + python-version: [3.8] + os: [ubuntu-latest] #ubuntu-latest [macos-latest, ] # - # env: - # PYTHON_VERSION: ${{ matrix.python-version }} - # SPARK_VERSION: ${{ matrix.spark-version }} - # PANDAS_VERSION: ${{ matrix.pandas-version }} - # PYARROW_VERSION: ${{ matrix.pyarrow-version }} - # NUMPY_VERSION: ${{ matrix.numpy-version }} - # DEFAULT_INDEX_TYPE: ${{ matrix.default-index-type }} - # KOALAS_TESTING: 1 - # SPARK_LOCAL_IP: 127.0.0.1 - # # DISPLAY=0.0 does not work in Github Actions with Python 3.5. Here we work around with xvfb-run - # PYTHON_EXECUTABLE: xvfb-run python - # GITHUB_OAUTH_KEY: ${{ secrets.GITHUB_TOKEN }} + env: + PYTHON_VERSION: ${{ matrix.python-version }} + SPARK_VERSION: ${{ matrix.spark-version }} + PANDAS_VERSION: ${{ matrix.pandas-version }} + PYARROW_VERSION: ${{ matrix.pyarrow-version }} + NUMPY_VERSION: ${{ matrix.numpy-version }} + DEFAULT_INDEX_TYPE: ${{ matrix.default-index-type }} + KOALAS_TESTING: 1 + SPARK_LOCAL_IP: 127.0.0.1 + # DISPLAY=0.0 does not work in Github Actions with Python 3.5. Here we work around with xvfb-run + PYTHON_EXECUTABLE: xvfb-run python + GITHUB_OAUTH_KEY: ${{ secrets.GITHUB_TOKEN }} - # steps: - # - uses: actions/checkout@v2 - # - uses: actions/setup-java@v1 - # with: - # java-version: 1.8 - # - name: Set up Python ${{ matrix.python-version }} - # uses: actions/setup-python@v2 - # with: - # python-version: ${{ matrix.python-version }} - # - name: Install libomp - # run: | - # if [ "$RUNNER_OS" == "macOS" ]; then - # brew install libomp - # fi - # shell: bash - # - name: install dependencies - # run: | - # pip install --upgrade pip - # pip install certifi - # pip install tox tox-wheel tox-gh-actions - # # pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org -r requirements_tox.txt - # # python setup.py build_ext --inplace - # # python setup.py install - # pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org -r requirements.txt - # pip install -e ."[dev]" + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install libomp + run: | + if [ "$RUNNER_OS" == "macOS" ]; then + brew install libomp + fi + shell: bash + # - name: install dependencies + # run: | + # pip install --upgrade pip + # pip install certifi + # pip install tox tox-wheel tox-gh-actions + # # pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org -r requirements_tox.txt + # # python setup.py build_ext --inplace + # # python setup.py install + # pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org -r requirements.txt + # pip install -e ."[dev]" - # - name: tests - # run: | - # coverage run --omit gators/*/test*.py -m pytest gators && coverage report && coverage xml - # - name: Upload coverage to Codecov - # uses: codecov/codecov-action@v2 - # with: - # token: ${{ secrets.CODECOV_TOKEN }} - # file: coverage.xml + # - name: tests + # run: | + # coverage run --omit gators/*/test*.py -m pytest gators && coverage report && coverage xml + # - name: Upload coverage to Codecov + # uses: codecov/codecov-action@v2 + # with: + # token: ${{ secrets.CODECOV_TOKEN }} + # file: coverage.xml build_wheels: runs-on: ${{ matrix.os }}