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 |
||
8 |
runs-on: ${{ matrix.os }} |
|
9 |
strategy: |
|
10 |
matrix: |
|
11 |
os: [ubuntu-latest] |
|
12 |
python-version: [3.6, 3.7, 3.8, pypy3] |
|
13 |
fail-fast: false |
|
14 |
||
15 |
steps: |
|
16 |
- uses: actions/checkout@v2 |
|
17 |
- name: Set up Python ${{ matrix.python-version }} |
|
18 |
uses: actions/setup-python@v2 |
|
19 |
with: |
|
20 |
python-version: ${{ matrix.python-version }} |
|
21 |
- name: Install dependencies (apt) |
|
22 |
run: | |
|
23 |
sudo apt install subunit quilt |
|
24 |
if: "matrix.os == 'ubuntu-latest'" |
|
25 |
- name: Install dependencies |
|
26 |
run: | |
|
27 |
python -m pip install --upgrade pip |
|
28 |
pip install -U pip setuptools |
|
29 |
pip install -U pip coverage codecov flake8 testtools paramiko fastimport configobj cython testscenarios six docutils python-subunit $TEST_REQUIRE sphinx sphinx_epytext launchpadlib patiencediff git+https://github.com/dulwich/dulwich |
|
30 |
- name: Build docs |
|
31 |
run: | |
|
32 |
make docs PYTHON=python |
|
33 |
- name: Build extensions |
|
34 |
run: | |
|
35 |
make extensions PYTHON=python |
|
36 |
if: "matrix.python-version != 'pypy3'" |
|
37 |
- name: Test suite run |
|
38 |
run: | |
|
39 |
python -Werror -Wignore::ImportWarning -Wignore::PendingDeprecationWarning -Wignore::DeprecationWarning -Wignore::ResourceWarning -Wignore::UserWarning ./brz selftest --parallel=fork |
|
40 |
if: "matrix.os == 'ubuntu-latest'" |
|
41 |
env: |
|
42 |
PYTHONHASHSEED: random |
|
43 |
BRZ_PLUGIN_PATH: -site:-user |
|
44 |
- name: Test suite run |
|
45 |
run: | |
|
46 |
python -Werror -Wignore::ImportWarning -Wignore::PendingDeprecationWarning -Wignore::DeprecationWarning -Wignore::ResourceWarning -Wignore::UserWarning ./brz selftest |
|
47 |
if: "matrix.os != 'ubuntu-latest'" |
|
48 |
env: |
|
49 |
PYTHONHASHSEED: random |
|
50 |
BRZ_PLUGIN_PATH: -site:-user |