Skip to content

Commit f59ff65

Browse files
committed
Configure github ci
1 parent 91ac0fd commit f59ff65

File tree

2 files changed

+40
-38
lines changed

2 files changed

+40
-38
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
jobs:
10+
build:
11+
name: "Python ${{ matrix.python-version }} ${{ matrix.os }}"
12+
runs-on: "${{ matrix.os }}"
13+
strategy:
14+
matrix:
15+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
16+
os: [ubuntu-latest]
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
- name: Setup Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip setuptools
27+
pip install -r requirements-dev.txt
28+
- name: Lint with flake8
29+
run: |
30+
python -m flake8 python_socks tests
31+
continue-on-error: true
32+
- name: Run tests
33+
# run: python -m pytest tests --cov=./python_socks --cov-report term-missing -s
34+
run: python -m pytest tests --cov=./python_socks --cov-report xml
35+
- name: Upload coverage
36+
uses: codecov/codecov-action@v3
37+
with:
38+
file: ./coverage.xml
39+
flags: unit
40+
fail_ci_if_error: false

.travis.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)