Skip to content

Commit

Permalink
Merge pull request #50 from APN-Pucky/rename_workflows
Browse files Browse the repository at this point in the history
Rename workflows
  • Loading branch information
APN-Pucky committed Jun 8, 2022
2 parents 2659b00 + e198970 commit f186860
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/release.yml → .github/workflows/devel.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: release
name: devel

on:
push:
tags:
branches-ignore:
- 'master'
tags-ignore:
- '*'
jobs:
publish:
default:
runs-on: ubuntu-latest
container:
image: apnpucky/ubuntu-pip-lhapdf
Expand Down Expand Up @@ -33,15 +35,4 @@ jobs:
project-token: ${{ secrets.CODACY_API_TOKEN }}
# or
#api-token: ${{ secrets.CODACY_API_TOKEN }}
coverage-reports: coverage.xml
- name: Deploy PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_token }}
- name: Deploy Github Pages
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/build/html # The folder the action should deploy.
clean-exclude: test/
coverage-reports: coverage.xml
19 changes: 14 additions & 5 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ name: stable

on:
push:
branches:
- 'stable'
tags-ignore:
tags:
- '*'
jobs:
test:
default:
runs-on: ubuntu-latest
container:
image: apnpucky/ubuntu-pip-lhapdf
Expand Down Expand Up @@ -35,4 +33,15 @@ jobs:
project-token: ${{ secrets.CODACY_API_TOKEN }}
# or
#api-token: ${{ secrets.CODACY_API_TOKEN }}
coverage-reports: coverage.xml
coverage-reports: coverage.xml
- name: Deploy PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_token }}
- name: Deploy Github Pages
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/build/html # The folder the action should deploy.
clean-exclude: test/
4 changes: 2 additions & 2 deletions .github/workflows/test.yml → .github/workflows/unstable.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: unstable

on:
push:
Expand All @@ -8,7 +8,7 @@ on:
- '*'

jobs:
test:
default:
runs-on: ubuntu-latest
container:
image: apnpucky/ubuntu-pip-lhapdf
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# HEPi

Python interface for gluing together several HEP programs (e.g. from HEP-Forge).
Currently slurm is supported for clusters.
Currently, slurm is supported for clusters.

[![PyPI version][pypi image]][pypi link] ![downloads](https://img.shields.io/pypi/dm/hepi.svg)
[![PyPI version][pypi image]][pypi link] ![downloads](https://img.shields.io/pypi/dm/hepi.svg)

| [Stable][doc stable] | [Dev][doc test] |
| [Stable][doc stable] | [Unstable][doc test] |
| ------------- |:-------------:|
| [![workflow][a s image]][a s link] | [![test][a t image]][a t link] |
| [![Coverage Status][c s i]][c s l] | [![Coverage Status][c t i]][c t l] |
Expand Down Expand Up @@ -38,10 +38,10 @@ pip install --index-url https://test.pypi.org/simple/ hepi
[pypi image]: https://badge.fury.io/py/hepi.svg
[pypi link]: https://pypi.org/project/hepi/

[a s image]: https://github.com/APN-Pucky/HEPi/actions/workflows/release.yml/badge.svg
[a s link]: https://github.com/APN-Pucky/HEPi/actions/workflows/release.yml
[a t link]: https://github.com/APN-Pucky/HEPi/actions/workflows/test.yml
[a t image]: https://github.com/APN-Pucky/HEPi/actions/workflows/test.yml/badge.svg
[a s image]: https://github.com/APN-Pucky/HEPi/actions/workflows/stable.yml/badge.svg
[a s link]: https://github.com/APN-Pucky/HEPi/actions/workflows/stable.yml
[a t link]: https://github.com/APN-Pucky/HEPi/actions/workflows/unstable.yml
[a t image]: https://github.com/APN-Pucky/HEPi/actions/workflows/unstable.yml/badge.svg

[codacy quality image]: https://app.codacy.com/project/badge/Grade/ef07b792a0f84f2eb1d7ebe07ae9e639
[codacy quality link]: https://www.codacy.com/gh/APN-Pucky/HEPi/dashboard?utm_source=github.com&utm_medium=referral&utm_content=APN-Pucky/HEPi&utm_campaign=Badge_Grade
Expand Down

0 comments on commit f186860

Please sign in to comment.