Skip to content

Commit

Permalink
Updated GHActions workflow file (#179)
Browse files Browse the repository at this point in the history
* Updated GHActions workflow file

* Fixed publishing

---------

Co-authored-by: Adrian Damian <[email protected]>
  • Loading branch information
andamian and Adrian Damian authored Apr 5, 2024
1 parent e9b122e commit 350677b
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

egginfo:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install tox
Expand All @@ -47,11 +47,11 @@ jobs:
package: caom2utils
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
Expand All @@ -67,13 +67,13 @@ jobs:
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
uses: ts-graphviz/setup-graphviz@v2
- name: Install tox
run: python -m pip install --upgrade tox
- name: checkstyle & coverage caom2
Expand All @@ -83,19 +83,22 @@ jobs:
- name: checkstyle & coverage caom2repo
run: cd caom2repo && tox -e checkstyle && tox -e cov
- name: Upload coverage to codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
files: ./caom2/coverage.xml,./caom2utils/coverage.xml,./caom2repo/coverage.xml

build-n-publish:
name: Build and publish to PyPI
needs: style_n_coverage
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
if: contains(github.ref, '=')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Determine the package
Expand Down

0 comments on commit 350677b

Please sign in to comment.