Skip to content

Commit

Permalink
refinements on the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri-ColibrITD committed Feb 23, 2024
1 parent 1db0825 commit 08800e8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/mpqp_prod.yml → .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: Build and Publish documentation
name: Documentation deployement

on:
pull_request:
pull_request_target:
types:
- closed
branches:
- main
push:
branches:
- main

jobs:

jobs:
build_publish_docs:
# Deploy to cloudflare
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Document
run: |
run: |
pip install -r requirements-dev.txt
sphinx-build -b html docs build
- name: Publish
Expand All @@ -25,4 +25,4 @@ jobs:
apiToken: ${{ secrets.PRD_CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.PRD_CLOUDFLARE_ACCOUNT_ID }}
projectName: mpqp
directory: build
directory: build
12 changes: 6 additions & 6 deletions .github/workflows/mpqp_tag.yml → .github/workflows/pipy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build and Publish on pipy
name: Pipy publishing

on:
push:
on:
push:
tags:
- '*'
- "*"

jobs:
build_publish_package:
Expand All @@ -12,15 +12,15 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Dependencies
run: |
run: |
pip install -r requirements-dev.txt
- name: Build Package
run: python setup.py sdist bdist_wheel
- name: Install Twine
run: |
pip install twine
- name: Publish to PyPI
run: |
run: |
twine upload dist/*
env:
TWINE_USERNAME: __token__
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Tests

on:
push:
Expand All @@ -12,7 +12,7 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Dependencies
run: |
run: |
pip install -r requirements-dev.txt
- name: Test
run: python -m pytest
run: python -m pytest

0 comments on commit 08800e8

Please sign in to comment.