-
Notifications
You must be signed in to change notification settings - Fork 19
67 lines (62 loc) · 1.53 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: ci
on:
pull_request:
branches: [master]
jobs:
common:
uses: TokTok/ci-tools/.github/workflows/common-ci.yml@master
# build:
# name: python-${{ matrix.version }}
# runs-on: ubuntu-latest
#
# strategy:
# matrix:
# include:
# - version: "2.7"
# - version: "3.5"
# - version: "3.6"
# - version: "3.8"
# - version: "3.9"
# - version: "3.10"
#
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.version }}
# - name: Install
# run: |
# sudo apt update
# sudo apt install -y --no-install-recommends --no-install-suggests libtoxcore-dev
# - name: Build
# run: python setup.py build_ext --inplace
# - name: Test
# run: PYTHONPATH=. python tests/tests.py
#
# coverage:
# name: python-3.7-coverage
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v2
# with:
# python-version: "3.7"
# - name: Install
# run: |
# sudo apt update
# sudo apt install -y --no-install-recommends --no-install-suggests libtoxcore-dev
# - name: Build
# run: |
# export CFLAGS="-fprofile-arcs -ftest-coverage"
# python setup.py build_ext --inplace
# - name: Test
# run: PYTHONPATH=. python tests/tests.py
# - name: Upload coverage
# run: bash <(curl -s https://codecov.io/bash)
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: docker build -t pytox .