diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a7165d..f060f0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: with: name: Packages path: dist - - name: Get tests & config from sdist + - name: Get tests & config from sdist; delete src. run: | tar xf dist/*.tar.gz --strip-components=1 rm -rf src @@ -62,7 +62,8 @@ jobs: python -Im nox \ --python ${{ matrix.python-version }} \ --sessions tests \ - -- --installpkg dist/*.whl + -- \ + --installpkg dist/*.whl - name: Upload coverage data uses: actions/upload-artifact@v4 @@ -129,7 +130,7 @@ jobs: with: name: Packages path: dist - - run: tar xf dist/*.tar.gz --strip-components=1 # needed for config files + - run: tar xf dist/*.tar.gz --strip-components=1 - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -154,7 +155,7 @@ jobs: with: name: Packages path: dist - - run: tar xf dist/*.tar.gz --strip-components=1 # needed for config files + - run: tar xf dist/*.tar.gz --strip-components=1 - uses: actions/setup-python@v5 with: cache: pip diff --git a/.github/workflows/pypi-package.yml b/.github/workflows/pypi-package.yml index 3dbc014..f0a4c46 100644 --- a/.github/workflows/pypi-package.yml +++ b/.github/workflows/pypi-package.yml @@ -3,6 +3,7 @@ name: Build & maybe upload PyPI package on: push: + branches: [main] tags: ["*"] release: types: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3a5a808..0d918bd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.9 + rev: v0.1.11 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix]