Skip to content

Commit

Permalink
Fix test PyPI triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Jan 3, 2024
1 parent d84ab4c commit 73de3ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pypi-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Build & maybe upload PyPI package

on:
push:
branches: [main]
tags: ["*"]
release:
types:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 73de3ce

Please sign in to comment.