-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (51 loc) · 1.59 KB
/
tests.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
name: Tests
on:
pull_request:
push:
branches:
- main
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {name: Python 3.9, python: '3.9', os: ubuntu-latest, tox: py, codecov: true}
- {name: Lint, python: '3.9', os: ubuntu-latest, tox: lint, codecov: false}
- {name: Type, python: '3.9', os: ubuntu-latest, tox: type, codecov: false}
- {name: Pylint, python: '3.9', os: ubuntu-latest, tox: pylint, codecov: false}
- {name: Vulture, python: '3.9', os: ubuntu-latest, tox: vulture, codecov: false}
- {name: Bandit, python: '3.9', os: ubuntu-latest, tox: bandit, codecov: false}
steps:
- name: Check out source code
uses: actions/checkout@v2
- name: "Create external volume"
run: |
make create-volume
- name: "Run toxenv"
run: |
make tox ARG=${{ matrix.tox }}
env:
PYTHON_VERSION: ${{ matrix.python }}
- name: Codecov
uses: codecov/codecov-action@v1
with:
file: ./.coverage.xml
if: ${{ matrix.codecov }}
e2e:
name: e2e
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v2
- name: Build Docker image
run: |
make build
shell: bash
- name: Run command
run: |
docker run --rm --entrypoint=python --env=A3M_DEBUG=yes a3m_a3m -m a3m.cli.client \
--name=MARBLES \
https://github.com/artefactual/archivematica-sampledata/raw/master/SampleTransfers/Images/pictures/MARBLES.TGA