update version to 0.1.3 #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python package | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache wheels | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }} | |
restore-keys: | | |
${{ runner.os }}-pip-${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install wheel coverage | |
pip install -e . | |
sudo apt-get install dmz-cursor-theme | |
- uses: pre-commit/[email protected] | |
- name: Test with sample/crosshair.cur | |
run: | | |
coverage run -m cursorgen 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 | |
coverage run -a -m cursorgen ani/*.ani -o output | |
ls -l output/* | |
- name: Test with dmz-cursor-theme | |
run: | | |
mkdir dmz-white | |
coverage run -a -m cursorgen /usr/share/icons/DMZ-White/cursors/* -o dmz-white | |
ls -l dmz-white/* | |
- name: Generating coverage report | |
run: coverage xml | |
- uses: codecov/codecov-action@v1 |