FAIRmat-NFDI / pynxtools

https://fairmat-nfdi.github.io/pynxtools/
Apache License 2.0
13 stars 8 forks source link

Fix branch in ci/cd in genric test #336

Closed RubelMozumder closed 6 months ago

coveralls commented 6 months ago

Pull Request Test Coverage Report for Build 9271803471

Details


Totals Coverage Status
Change from base Build 9268326592: 0.06%
Covered Lines: 2817
Relevant Lines: 3589

💛 - Coveralls
RubelMozumder commented 6 months ago

Actually, if we have

on:
  push:
    branches: ["*"]
  pull_request:
    branches: [master]

the CI gets run twice when we have a PR to master.

So, I suggest replacing branches: ["*"] by branches: [master], so that the CI only gets run 1) when there is a PR to master, or 2) on a push (be it a direct push or through a merge of a PR) to master.

on:
  push:
    branches: [master]
  pull_request:
    branches: [master]

Isn't it expected to see twice? One is coming from the feature branch, another one is coming from the master branch due to the PR to master branch.

https://github.com/FAIRmat-NFDI/pynxtools/actions/runs/9269299202/job/25499817118?pr=336#step:2:554

Here, it checked out to the HEAD commit of the feature branch. If you still suggest to go back to the previous settings [master], I can do it.

lukaspie commented 6 months ago

Actually, if we have

on:
  push:
    branches: ["*"]
  pull_request:
    branches: [master]

the CI gets run twice when we have a PR to master. So, I suggest replacing branches: ["*"] by branches: [master], so that the CI only gets run 1) when there is a PR to master, or 2) on a push (be it a direct push or through a merge of a PR) to master.

on:
  push:
    branches: [master]
  pull_request:
    branches: [master]

Isn't it expected to see twice? One is coming from the feature branch, another one is coming from the master branch due to the PR to master branch.

https://github.com/FAIRmat-NFDI/pynxtools/actions/runs/9269299202/job/25499817118?pr=336#step:2:554

Here, it checked out to the HEAD commit of the feature branch. If you still suggest to go back to the previous settings [master], I can do it.

The point is that with the current settings, it runs the same test twice when there's a PR to master (like this one here), which is not neccessary. Therefore, I suggest going back to [master].

RubelMozumder commented 6 months ago

Changed!

lukaspie commented 6 months ago

CI is failing because there is no TestFromPynxtools branch available in pynxtools-stm.

RubelMozumder commented 6 months ago

CI is failing because there is no TestFromPynxtools branch available in pynxtools-stm.

Noted!