/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
7502.2.1 by Jelmer Vernooij
Add github action.
1
name: Python package
2
3
on: [push, pull_request]
4
5
jobs:
6
  build:
7
7514.1.1 by Jelmer Vernooij
Mark pypy3 build as experimental since it currently fails.
8
    continue-on-error: ${{ matrix.experimental }}
7502.2.1 by Jelmer Vernooij
Add github action.
9
    runs-on: ${{ matrix.os }}
10
    strategy:
11
      matrix:
12
        os: [ubuntu-latest]
7514.1.1 by Jelmer Vernooij
Mark pypy3 build as experimental since it currently fails.
13
        python-version: [3.6, 3.7, 3.8]
14
        experimental: [false]
7524.1.1 by Jelmer Vernooij
Disable pypy3 build.
15
# See https://github.com/actions/toolkit/issues/399
16
#        include:
17
#          - os: ubuntu-latest
18
#            python-version: pypy3
19
#            experimental: true
7502.2.1 by Jelmer Vernooij
Add github action.
20
      fail-fast: false
21
22
    steps:
7524.1.1 by Jelmer Vernooij
Disable pypy3 build.
23
      - uses: actions/checkout@v2
24
      - name: Set up Python ${{ matrix.python-version }}
25
        uses: actions/setup-python@v2
26
        with:
27
          python-version: ${{ matrix.python-version }}
28
      - name: Install dependencies (apt)
29
        run: |
30
          sudo apt install quilt
31
        if: "matrix.os == 'ubuntu-latest'"
32
      - name: Install dependencies
33
        run: |
34
          python -m pip install --upgrade pip
35
          pip install -U pip setuptools
36
          pip install -U pip coverage codecov flake8 testtools paramiko fastimport configobj cython testscenarios six docutils $TEST_REQUIRE sphinx sphinx_epytext launchpadlib patiencediff pyinotify git+https://github.com/dulwich/dulwich
37
      - name: Build docs
38
        run: |
39
          make docs PYTHON=python
40
      - name: Build extensions
41
        run: |
42
          make extensions PYTHON=python
43
        if: "matrix.python-version != 'pypy3'"
44
      - name: Test suite run
45
        run: |
46
          python -Werror -Wignore::ImportWarning -Wignore::PendingDeprecationWarning -Wignore::DeprecationWarning -Wignore::ResourceWarning -Wignore::UserWarning ./brz selftest
47
        env:
48
          PYTHONHASHSEED: random
49
          BRZ_PLUGIN_PATH: -site:-user