mirror of
https://github.com/quantum5/win2xcur.git
synced 2025-04-24 10:11:57 -04:00
Add GitHub actions for CI
This commit is contained in:
parent
05d3f7e4c1
commit
e98085649e
43
.github/workflows/build.yml
vendored
Normal file
43
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
name: Python package
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [ 3.5, 3.6, 3.7, 3.8 ]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install flake8 mypy wheel
|
||||
pip install -r requirements.txt
|
||||
sudo apt-get install x11-apps
|
||||
- name: Lint with flake8
|
||||
run: flake8 .
|
||||
- name: Typecheck with mypy
|
||||
run: mypy .
|
||||
- name: Test packages
|
||||
run: python setup.py sdist bdist_wheel
|
||||
- name: Test wheel install
|
||||
run: pip install dist/*.whl
|
||||
- name: Test with sample/crosshair.cur
|
||||
run: |
|
||||
win2xcur sample/crosshair.cur -o /tmp
|
||||
ls -l /tmp/crosshair
|
||||
- name: Test with animated cursors
|
||||
run: |
|
||||
wget http://www.anicursor.com/waiting.zip
|
||||
mkdir ani output
|
||||
unzip waiting.zip -d ani
|
||||
win2xcur -s sample/crosshair.cur -o output
|
||||
ls -l output/*
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Wand
|
Loading…
Reference in a new issue