Merge lp:~jelmer/brz/github-actions into lp:brz

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: no longer in the source branch.
Merge reported by: The Breezy Bot
Merged at revision: not available
Proposed branch: lp:~jelmer/brz/github-actions
Merge into: lp:brz
Diff against target: 56 lines (+50/-0)
1 file modified
.github/workflows/pythonpackage.yml (+50/-0)
To merge this branch: bzr merge lp:~jelmer/brz/github-actions
Reviewer Review Type Date Requested Status
Jelmer Vernooij Approve
Review via email: mp+384477@code.launchpad.net

Commit message

Add a GitHub action.

Description of the change

Add a GitHub action.

Currently this just builds on Linux; I'm planning to add support for Windows separately, since we currently still have a lot of failures.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve
Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory '.github'
2=== added directory '.github/workflows'
3=== added file '.github/workflows/pythonpackage.yml'
4--- .github/workflows/pythonpackage.yml 1970-01-01 00:00:00 +0000
5+++ .github/workflows/pythonpackage.yml 2020-05-24 00:41:08 +0000
6@@ -0,0 +1,50 @@
7+name: Python package
8+
9+on: [push, pull_request]
10+
11+jobs:
12+ build:
13+
14+ runs-on: ${{ matrix.os }}
15+ strategy:
16+ matrix:
17+ os: [ubuntu-latest]
18+ python-version: [3.6, 3.7, 3.8, pypy3]
19+ fail-fast: false
20+
21+ steps:
22+ - uses: actions/checkout@v2
23+ - name: Set up Python ${{ matrix.python-version }}
24+ uses: actions/setup-python@v2
25+ with:
26+ python-version: ${{ matrix.python-version }}
27+ - name: Install dependencies (apt)
28+ run: |
29+ sudo apt install subunit quilt
30+ if: "matrix.os == 'ubuntu-latest'"
31+ - name: Install dependencies
32+ run: |
33+ python -m pip install --upgrade pip
34+ pip install -U pip setuptools
35+ 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
36+ - name: Build docs
37+ run: |
38+ make docs PYTHON=python
39+ - name: Build extensions
40+ run: |
41+ make extensions PYTHON=python
42+ if: "matrix.python-version != 'pypy3'"
43+ - name: Test suite run
44+ run: |
45+ python -Werror -Wignore::ImportWarning -Wignore::PendingDeprecationWarning -Wignore::DeprecationWarning -Wignore::ResourceWarning -Wignore::UserWarning ./brz selftest --parallel=fork
46+ if: "matrix.os == 'ubuntu-latest'"
47+ env:
48+ PYTHONHASHSEED: random
49+ BRZ_PLUGIN_PATH: -site:-user
50+ - name: Test suite run
51+ run: |
52+ python -Werror -Wignore::ImportWarning -Wignore::PendingDeprecationWarning -Wignore::DeprecationWarning -Wignore::ResourceWarning -Wignore::UserWarning ./brz selftest
53+ if: "matrix.os != 'ubuntu-latest'"
54+ env:
55+ PYTHONHASHSEED: random
56+ BRZ_PLUGIN_PATH: -site:-user

Subscribers

People subscribed via source and target branches