-
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
Showing
6 changed files
with
1,597 additions
and
1,534 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
name: bundle | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: build dist files | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
enable-cache: true | ||
- name: build dist | ||
run: uv build | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: artifacts | ||
path: dist/* | ||
if-no-files-found: error | ||
|
||
release: | ||
name: create Github release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: softprops/action-gh-release@v2 | ||
|
||
publish: | ||
name: release to pypi | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
environment: | ||
name: pypi-release | ||
url: https://pypi.org/project/pytest-iam/ | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: artifacts | ||
path: dist | ||
|
||
- name: Push build artifacts to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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 |
---|---|---|
|
@@ -2,27 +2,68 @@ | |
name: tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- '*.*.*' | ||
pull_request: | ||
branches: | ||
- main | ||
- '*.*.*' | ||
|
||
jobs: | ||
tests: | ||
name: ${{ matrix.python }} | ||
name: py${{ matrix.python }} unit tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: | ||
- '3.13' | ||
- '3.12' | ||
- '3.11' | ||
- '3.10' | ||
- '3.9' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
- uses: actions/setup-python@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
cache: 'poetry' | ||
- run: poetry install | ||
- run: poetry run pytest | ||
enable-cache: true | ||
- name: Install Python ${{ matrix.python }} | ||
run: uv python install ${{ matrix.python }} | ||
- name: Install dependencies | ||
run: uv sync --all-extras | ||
- name: Run tests | ||
run: uv run pytest --showlocals | ||
|
||
minversions: | ||
name: minimum dependency versions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
enable-cache: true | ||
- name: Install minimum dependencies | ||
run: uv sync --resolution=lowest-direct --all-extras | ||
- name: Run tests | ||
run: uv run pytest --showlocals | ||
|
||
style: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pre-commit/[email protected] | ||
|
||
doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
enable-cache: true | ||
- name: Install dependencies | ||
run: uv sync --group doc | ||
- run: uv run sphinx-build doc build/sphinx/html |
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
Oops, something went wrong.