Skip to content

Commit

Permalink
Merge pull request #11 from DevOps-MBSE/10-task-update-workflows-for-…
Browse files Browse the repository at this point in the history
…pypi-deployment

Correcting Workflows
  • Loading branch information
lizzcondrey authored May 1, 2024
2 parents 9962d06 + 213ce1b commit c769765
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-build-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Upload Python Wheel
uses: actions/upload-artifact@v3
with:
name: aac_wheel
name: aac_spec_wheel
path: python/dist/

- name: Build Documentation
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-cross-platform-support.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
os: [ubuntu-20.04, ubuntu-latest, windows-latest, macos-latest] # Annoyingly, Github actions don't support anchors
os: [ubuntu-20.04, ubuntu-latest, windows-latest, macos-13, macos-14] # Annoyingly, Github actions don't support anchors

steps:
- name: Checkout Repository
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:

strategy:
matrix:
os: [ubuntu-20.04, ubuntu-latest, windows-latest, macos-latest] # Annoyingly, Github actions don't support anchors
os: [ubuntu-20.04, ubuntu-latest, windows-latest, macos-13, macos-14] # Annoyingly, Github actions don't support anchors
py_version: ["3.9.13"] # py_version: ["3.9.0", "3.10.0", "3.11.0"]
# exclude:
# - os: ubuntu-latest
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/python-deploy-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Deploy Python Artifacts

on:
workflow_dispatch:
# push:
# branches:
# - main
# paths:
# - python/**
push:
branches:
- main
paths:
- python/**

defaults:
run:
Expand All @@ -21,15 +21,15 @@ jobs:
name: Deploy Artifacts
runs-on: ubuntu-22.04
needs: build_deployment_artifacts
permissions:
# Important: This permission is mandatory for trusted publishing
id-token: write
steps:
- name: Download Python Wheel
uses: actions/download-artifact@v3
with:
name: aac_wheel
path: python/dist/
name: aac_spec_wheel
path: dist/

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: python/dist/
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Build Documentation
uses: ammaraskar/sphinx-action@0.4
with:
pre-build-command: "pip install -e ."
pre-build-command: "pip install aac-spec"
docs-folder: "docs/"

- name: Upload Artifact
Expand Down
8 changes: 4 additions & 4 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ build-backend = "setuptools.build_meta"

[project]
name = "aac-spec"
version = "0.1.0"
version = "0.1.1"
authors = [
{ name="Will Bunch", email="William.Bunch@ngc.com" },
{ name="bunchw", email="asdfasdaf@email.com" },
]
description = "Specification plugin for AaC"
requires-python = "== 3.9.13"
requires-python = ">= 3.9.13"
dependencies = [
"aac==0.4.3"
"aac>=0.4.3"
]
readme = "README.md"
license = {text = "MIT License"}
Expand Down

0 comments on commit c769765

Please sign in to comment.