-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (37 loc) · 1.17 KB
/
build.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
name: Build and test
on:
pull_request:
jobs:
docker:
name: Docker tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Docker image
uses: docker/build-push-action@v4
with:
context: .
tags: ${{ github.repository }}:test
# - name: Test Docker image
# run: docker run --rm --user root:root --entrypoint bash ${{ github.repository }}:test -c 'pip install pytest-asyncio && pytest --pyargs gcn_classic_to_kafka'
python:
name: Python tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Poetry
run: pip install poetry
- name: Install package
run: poetry install
- name: Run flake8 linter
run: poetry run flake8
# - name: Run unit tests
# run: poetry run pytest . --cov --cov-report=xml
# - name: Upload coverage to codecov
# uses: codecov/codecov-action@v3