-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21210b5
commit f0d586b
Showing
1 changed file
with
5 additions
and
17 deletions.
There are no files selected for viewing
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
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 }} | ||
|
@@ -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 | ||
|