Add README
Committed 5cbe87
index 0000000..e62e3b0
--- /dev/null
+name: analyze
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+jobs:
+ build:
+ strategy:
+ matrix:
+ python-version: ["3.10"]
+ runs-on: "ubuntu-latest"
+ steps:
+ - name: Install graphviz
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y graphviz
+ - uses: actions/checkout@v3
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Remove development dependencies
+ run: sed -i '/\[tool.poetry.group.dev.dependencies\]/,$d' pyproject.toml
+ - name: Install Poetry
+ uses: snok/install-poetry@v1
+ with:
+ version: 1.2.2
+ virtualenvs-in-project: true
+ - name: Install dependencies
+ run: poetry install --no-interaction --no-root
+ - name: Install library
+ run: poetry install --no-interaction
+ - uses: psf/black@stable
+ with:
+ options: "--check --verbose"
+ src: "."
+ version: "23.7"
+ - uses: isort/isort-action@v1
+ with:
+ configuration: "--profile black"
+ - run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
+ - uses: jakebailey/pyright-action@v1
+ - name: Run tests
+ run: poetry run gmpg test
+ - name: Parse and analyze API
+ run: poetry run gmpg analyze
+ - name: Generate dependency graph
+ run: poetry run gmpg graph
+ - uses: actions/upload-artifact@v3
+ with:
+ name: analysis
+ path: |
+ test_coverage.xml
+ test_results.xml
+ api_python.json
+ deps.svg
+ publish:
+ needs:
+ strategy:
+ matrix:
+ python-version: ["3.10"]
+ runs-on: "ubuntu-latest"
+ steps:
+ - name: Install graphviz
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y graphviz
+ - uses: actions/checkout@v3
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Remove development dependencies
+ run: sed -i '/\[tool.poetry.group.dev.dependencies\]/,$d' pyproject.toml
+ - name: Install Poetry
+ uses: snok/install-poetry@v1
+ with:
+ version: 1.2.2
+ virtualenvs-in-project: true
+ - name: Install dependencies
+ run: poetry install --no-interaction --no-root
+ - name: Install library
+ run: poetry install --no-interaction
+ - uses: psf/black@stable
+ with:
+ options: "--check --verbose"
+ src: "."
+ version: "23.7"
+ - uses: isort/isort-action@v1
+ with:
+ configuration: "--profile black"
+ - run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
+ - uses: jakebailey/pyright-action@v1
+ - name: Run tests
+ run: poetry run gmpg test
+ - name: Analyze API
+ run: poetry run gmpg analyze
+ - name: Generate dependency graph
+ run: poetry run gmpg graph
+ - uses: actions/upload-artifact@v3
+ with:
+ name: analysis
+ path: |
+ test_coverage.xml
+ test_results.xml
+ api_python.json
+ deps.svg
index c8d9517..0000000
--- a/.github/workflows/tests.yml
-name: Run Tests and Analysis
-
-on:
- push:
- branches:
- - main
- pull_request:
- branches:
- - main
-
-jobs:
- build-linux:
- strategy:
- matrix:
- python-version: ["3.10"]
- runs-on: "ubuntu-latest"
- steps:
- - name: Install graphviz
- run: |
- sudo apt-get update
- sudo apt-get install -y graphviz
-
- - uses: actions/checkout@v3
- with:
- python-version: ${{ matrix.python-version }}
-
- - name: Install Python
- uses: actions/setup-python@v4
- with:
- python-version: ${{ matrix.python-version }}
-
- - name: Remove development dependencies
- run: sed -i '/\[tool.poetry.group.dev.dependencies\]/,$d' pyproject.toml
-
- - name: Install Poetry
- uses: snok/install-poetry@v1
- with:
- version: 1.2.2
- virtualenvs-in-project: true
-
- - name: Install dependencies
- run: poetry install --no-interaction --no-root
-
- - name: Install library
- run: poetry install --no-interaction
-
- - uses: psf/black@stable
- with:
- options: "--check --verbose"
- src: "."
- version: "23.7"
-
- - uses: isort/isort-action@v1
- with:
- configuration: "--profile black"
-
- - run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
- - uses: jakebailey/pyright-action@v1
-
- - name: Run tests
- run: poetry run gmpg test
-
- - name: Run analysis
- run: poetry run gmpg analyze
-
- - name: Generate dependency graph
- run: poetry run gmpg graph
-
- - uses: actions/upload-artifact@v3
- with:
- name: analysis
- path: |
- test_coverage.xml
- test_results.xml
- api_python.json
- deps.svg
index 0000000..b0e9ccc
--- /dev/null
--- a/pyproject.toml
+++ b/pyproject.toml
version = "0.1.22"
description = "tools for metamodern software development"
keywords = ["Git", "Poetry"]
+readme = "README.md"
homepage = "https://ragt.ag/code/projects/gmpg"
repository = "https://ragt.ag/code/projects/gmpg.git"
documentation = "https://ragt.ag/code/projects/gmpg/api"