Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuramaruzxc committed Mar 17, 2024
1 parent 21210b5 commit f0d586b
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Python package
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.7, 3.8, 3.9, '3.10', '3.11' ]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -26,22 +26,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 flake8-import-order black isort mypy wheel coverage
pip install wheel coverage
pip install -e .
sudo apt-get install dmz-cursor-theme
- name: Auto Formatting
run: |
black .
isort --profile black .
- name: Lint with flake8
run: flake8 .
- name: Typecheck with mypy
if: matrix.python-version != 3.7
run: mypy .
- name: Test packages
run: python setup.py sdist bdist_wheel
- name: Test wheel install
run: pip install dist/*.whl
- uses: pre-commit/[email protected]
- name: Test with sample/crosshair.cur
run: |
coverage run -m cursorgen sample/crosshair.cur -o /tmp
Expand Down

0 comments on commit f0d586b

Please sign in to comment.