Skip to content

Commit

Permalink
Merge cf20e9d into f16eba6
Browse files Browse the repository at this point in the history
  • Loading branch information
gwionap committed Oct 7, 2022
2 parents f16eba6 + cf20e9d commit 3ef4550
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/poetry-pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,10 @@ jobs:
poetry-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install Poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Publish to Pypi
env:
TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: poetry publish --build -u __token__ -p $TOKEN
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: release to PyPI
uses: moj-analytical-services/actions-poetry-pypi-release@v1
with:
pypi-api-token: ${{ secrets.PYPI_API_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/test-mojap-suite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: test mojap suite of package dependancies

on: pull_request

env:
REPO_NAME: ${{ github.event.repository.name }}
ORG_REPO: ${{ github.repository }}

jobs:
build:
name: test mojap dependencies
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: [3.8, 3.9]
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: check changes for conflicts with other mojap package dependencies
uses: moj-analytical-services/actions-mojap-package-depends@v1
with:
org-repo: ${{ env.ORG_REPO }}
repo: ${{ env.REPO_NAME }}

0 comments on commit 3ef4550

Please sign in to comment.