Skip to content

Commit 08f4a1c

Browse files
committed
ci: Move to GitHub Actions
1 parent 59802c6 commit 08f4a1c

File tree

5 files changed

+50
-35
lines changed

5 files changed

+50
-35
lines changed

.github/workflows/ci.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Continuous integration checks
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: '0 0 * * 0' # weekly
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ['3.10']
14+
15+
steps:
16+
- uses: actions/checkout@v5
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v6
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
sudo apt-get install libzbar-dev
24+
python -m pip install --upgrade pip
25+
pip install -r requirements-dev.txt
26+
pip freeze
27+
- name: Run tests
28+
run: |
29+
make tests
30+
31+
quality:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v5
35+
- name: Set up Python
36+
uses: actions/setup-python@v6
37+
with:
38+
python-version: '3.10'
39+
- name: Install dependencies
40+
run: |
41+
sudo apt-get install libzbar-dev
42+
python -m pip install --upgrade pip
43+
pip install -r requirements-dev.txt
44+
pip freeze
45+
- name: Run quality checks
46+
run: |
47+
make quality

.travis.yml

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

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ prune tests
44
global-exclude *.py[cod] __pycache__ *.so
55

66
include Changelog.rst LICENSE README.rst
7-
exclude Makefile requirements-dev.txt tox.ini run.py
7+
exclude Makefile requirements-dev.txt run.py

requirements-dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
-e .
2+
13
# Installation
24
setuptools>=30.3
35

@@ -20,7 +22,6 @@ flake8-mutable
2022
pep8-naming
2123
pytest
2224
readme-renderer
23-
tox
2425
vulture
2526

2627
# Release

tox.ini

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

0 commit comments

Comments
 (0)