-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (37 loc) · 1.01 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# These tests require that BorgBackup be installed,
# which is not available on GitHub Actions.
name: Emborg
on: [push, pull_request]
jobs:
check-bats-version:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.6", "3.x"]
max-parallel: 6
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-node@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Borg
run: |
sudo apt install borgbackup
- name: Install packages
run: |
python -m pip install --upgrade pip
pip install .
pip install tox
pip install coveralls
- name: Run tests
run: |
tox
- name: Report test coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
run: coveralls