Skip to content

Commit e980856

Browse files
committed
Add GitHub actions for CI
1 parent 05d3f7e commit e980856

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Python package
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: [ 3.5, 3.6, 3.7, 3.8 ]
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install flake8 mypy wheel
23+
pip install -r requirements.txt
24+
sudo apt-get install x11-apps
25+
- name: Lint with flake8
26+
run: flake8 .
27+
- name: Typecheck with mypy
28+
run: mypy .
29+
- name: Test packages
30+
run: python setup.py sdist bdist_wheel
31+
- name: Test wheel install
32+
run: pip install dist/*.whl
33+
- name: Test with sample/crosshair.cur
34+
run: |
35+
win2xcur sample/crosshair.cur -o /tmp
36+
ls -l /tmp/crosshair
37+
- name: Test with animated cursors
38+
run: |
39+
wget http://www.anicursor.com/waiting.zip
40+
mkdir ani output
41+
unzip waiting.zip -d ani
42+
win2xcur -s sample/crosshair.cur -o output
43+
ls -l output/*

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Wand

0 commit comments

Comments
 (0)