Advertisement
cooperlees

Untitled

Mar 14th, 2021
1,168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.36 KB | None | 0 0
  1. name: bandersnatch_ci_latest
  2.  
  3. on: [push, pull_request]
  4.  
  5. jobs:
  6.   build:
  7.     name: bandersnatch CI python ${{ matrix.python-version }} on ${{matrix.os}}
  8.     if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
  9.  
  10.     runs-on: ubuntu-latest
  11.     strategy:
  12.       matrix:
  13.         python-version: [3.10-dev]
  14.     steps:
  15.       - uses: actions/checkout@v2
  16.       - uses: deadsnakes/action@v2.1.1
  17.         with:
  18.           python-version: ${{ matrix.python-version }}
  19.           debug: true
  20.  
  21.       - name: Print Python Version
  22.         run: python --version --version && which python
  23.  
  24.       - name: Install latest pip, setuptools + tox
  25.         run: |
  26.          python -m pip install --upgrade pip setuptools tox
  27.  
  28.       - name: Install dev dependency packages for building from source
  29.         run: |
  30.          sudo apt install libxslt1-dev libxml2-dev
  31.  
  32.       - name: Install base bandersnatch requirements
  33.         run: |
  34.          python -m pip install -r requirements.txt
  35.  
  36.       - name: Run Unittests
  37.         env:
  38.           SUPPRESS_ERRORS: 'True'
  39.           TOXENV: py3
  40.         run: |
  41.          python test_runner.py
  42.  
  43.       - name: Run Integration Test
  44.         env:
  45.           SUPPRESS_ERRORS: 'True'
  46.           TOXENV: INTEGRATION
  47.         run: |
  48.          python -m pip install .
  49.           python test_runner.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement