-
Notifications
You must be signed in to change notification settings - Fork 15
52 lines (49 loc) · 1.19 KB
/
ci.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
52
name: Python application
on:
push:
branches:
- '*'
pull_request:
branches: [ master ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: false
tags: tbarbette/npf:latest
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ hashFiles('setup.py') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
pip install pytest
- name: Version
run: |
npf-run --version
- name: Compilation test
run: |
python -m compileall -q npf *.py
- name: Unit test
run: |
python -m pytest integration/test_unittest.py
- name: Run-time tests
run: |
./integration/integration.sh