|
| 1 | +name: Posix |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [master] |
| 6 | + pull_request: |
| 7 | + branches: |
| 8 | + - master |
| 9 | + - 1.2.x |
| 10 | + |
| 11 | +env: |
| 12 | + PYTEST_WORKERS: "auto" |
| 13 | + PANDAS_CI: 1 |
| 14 | + |
| 15 | +jobs: |
| 16 | + pytest: |
| 17 | + runs-on: ubuntu-latest |
| 18 | + defaults: |
| 19 | + run: |
| 20 | + shell: bash -l {0} |
| 21 | + strategy: |
| 22 | + matrix: |
| 23 | + settings: [ |
| 24 | + [actions-37-minimum_versions.yaml, "not slow and not network and not clipboard", "", "", "", "", ""], |
| 25 | + [actions-37.yaml, "not slow and not network and not clipboard", "", "", "", "", ""], |
| 26 | + [actions-37-locale_slow.yaml, "slow", "language-pack-it xsel", "it_IT.utf8", "it_IT.utf8", "", ""], |
| 27 | + [actions-37-slow.yaml, "slow", "", "", "", "", ""], |
| 28 | + [actions-38.yaml, "not slow and not network and not clipboard", "", "", "", "", ""], |
| 29 | + [actions-38-slow.yaml, "slow", "", "", "", "", ""], |
| 30 | + [actions-38-locale.yaml, "not slow and not network", "language-pack-zh-hans xsel", "zh_CN.utf8", "zh_CN.utf8", "", ""], |
| 31 | + [actions-38-numpydev.yaml, "not slow and not network", "xsel", "", "", "deprecate", "-W error"], |
| 32 | + [actions-39.yaml, "not slow and not network and not clipboard", "", "", "", "", ""] |
| 33 | + ] |
| 34 | + fail-fast: false |
| 35 | + env: |
| 36 | + COVERAGE: true |
| 37 | + ENV_FILE: ci/deps/${{ matrix.settings[0] }} |
| 38 | + PATTERN: ${{ matrix.settings[1] }} |
| 39 | + EXTRA_APT: ${{ matrix.settings[2] }} |
| 40 | + LANG: ${{ matrix.settings[3] }} |
| 41 | + LC_ALL: ${{ matrix.settings[4] }} |
| 42 | + PANDAS_TESTING_MODE: ${{ matrix.settings[5] }} |
| 43 | + TEST_ARGS: ${{ matrix.settings[6] }} |
| 44 | + |
| 45 | + steps: |
| 46 | + - name: Checkout |
| 47 | + uses: actions/checkout@v1 |
| 48 | + |
| 49 | + - name: Cache conda |
| 50 | + uses: actions/cache@v1 |
| 51 | + env: |
| 52 | + CACHE_NUMBER: 0 |
| 53 | + with: |
| 54 | + path: ~/conda_pkgs_dir |
| 55 | + key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ |
| 56 | + hashFiles('${{ env.ENV_FILE }}') }} |
| 57 | + |
| 58 | + - name: Extra installs |
| 59 | + run: sudo apt-get update && sudo apt-get install -y libc6-dev-i386 ${{ env.EXTRA_APT }} |
| 60 | + |
| 61 | + - uses: conda-incubator/setup-miniconda@v2 |
| 62 | + with: |
| 63 | + activate-environment: pandas-dev |
| 64 | + channel-priority: flexible |
| 65 | + environment-file: ${{ env.ENV_FILE }} |
| 66 | + use-only-tar-bz2: true |
| 67 | + |
| 68 | + - name: Build Pandas |
| 69 | + uses: ./.github/actions/build_pandas |
| 70 | + |
| 71 | + - name: Test |
| 72 | + run: ci/run_tests.sh |
| 73 | + if: always() |
| 74 | + |
| 75 | + - name: Build Version |
| 76 | + run: pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd |
| 77 | + |
| 78 | + - name: Publish test results |
| 79 | + uses: actions/upload-artifact@master |
| 80 | + with: |
| 81 | + name: Test results |
| 82 | + path: test-data.xml |
| 83 | + if: failure() |
| 84 | + |
| 85 | + - name: Print skipped tests |
| 86 | + run: python ci/print_skipped.py |
| 87 | + |
| 88 | + - name: Upload coverage to Codecov |
| 89 | + uses: codecov/codecov-action@v1 |
| 90 | + with: |
| 91 | + flags: unittests |
| 92 | + name: codecov-pandas |
| 93 | + fail_ci_if_error: false |
0 commit comments