-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better error on OS watcher limit (#208)
* better error on OS watcher limit, #207 * skip message check on other OSes * fix linting * more error details, skip build on PR * fix docs build, support rust 1.56 * file not found on force polling * fix error typo
- Loading branch information
1 parent
94ef903
commit eb8771c
Showing
6 changed files
with
55 additions
and
39 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 |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11-dev' | ||
- '3.11' | ||
- 'pypy3.8' | ||
- 'pypy3.9' | ||
|
||
|
@@ -87,7 +87,7 @@ jobs: | |
|
||
- run: pip install -r requirements/pyproject.txt -r requirements/linting.txt | ||
|
||
- run: pip install . | ||
- run: pip install -e . | ||
|
||
- uses: pre-commit/[email protected] | ||
with: | ||
|
@@ -119,6 +119,7 @@ jobs: | |
name: > | ||
build on ${{ matrix.platform || matrix.os }} (${{ matrix.target }} - ${{ matrix.manylinux || 'auto' }}) | ||
if: "startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'Full Build')" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -173,8 +174,6 @@ jobs: | |
run: cargo update -p watchfiles_rust_notify | ||
if: "startsWith(github.ref, 'refs/tags/')" | ||
|
||
- run: pip install twine | ||
|
||
- name: build sdist | ||
if: ${{ matrix.os == 'ubuntu' && matrix.target == 'x86_64' && matrix.manylinux == 'auto' }} | ||
uses: messense/maturin-action@v1 | ||
|
@@ -199,8 +198,6 @@ jobs: | |
|
||
- run: ${{ matrix.ls || 'ls -lh' }} dist/ | ||
|
||
- run: twine check dist/* | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: pypi_files | ||
|
@@ -235,10 +232,13 @@ jobs: | |
ls dist/*cp37-abi3-manylinux*x86_64.whl | head -n 1 | ||
python -m zipfile --list `ls dist/*cp37-abi3-manylinux*x86_64.whl | head -n 1` | ||
- run: pip install twine | ||
- run: twine check dist/* | ||
|
||
# Used for branch protection checks, see https://github.com/marketplace/actions/alls-green#why | ||
check: | ||
if: always() | ||
needs: [test, lint, docs, build, list-pypi-files] | ||
needs: [test, lint, docs] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Decide whether the needed jobs succeeded or failed | ||
|
@@ -247,7 +247,7 @@ jobs: | |
jobs: ${{ toJSON(needs) }} | ||
|
||
release: | ||
needs: [build, docs] | ||
needs: [build, check, docs] | ||
if: "success() && startsWith(github.ref, 'refs/tags/')" | ||
runs-on: ubuntu-latest | ||
|
||
|
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 |
---|---|---|
|
@@ -56,6 +56,7 @@ testcov: test | |
|
||
.PHONY: docs | ||
docs: | ||
rm -f watchfiles/*.so | ||
mkdocs build | ||
|
||
.PHONY: all | ||
|
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
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
Empty file.
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