Skip to content

Commit

Permalink
Merge pull request #641 from OpenFreeEnergy/fix/docker_image_building…
Browse files Browse the repository at this point in the history
…_issue_610

Fix docker image building + CI improvements
  • Loading branch information
IAlibay authored Nov 20, 2023
2 parents 1e6a365 + d011065 commit 87efe47
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
run: |
pytest -n auto -v --cov=openfe --cov=openfecli --cov-report=xml --durations=10
- name: codecov
- name: codecov-pr
if: ${{ github.repository == 'OpenFreeEnergy/openfe'
&& github.event_name == 'pull_request' }}
uses: codecov/codecov-action@v3
Expand All @@ -92,3 +92,19 @@ jobs:
file: coverage.xml
fail_ci_if_error: False
verbose: True
flags: fast-tests

- name: codecov-merge
# we only want to upload a slow report if
# 1) it isn't a schedule run
# 2) it wasn't from a PR (we don't run slow tests on PRs)
if: ${{ github.repository == 'OpenFreeEnergy/openfe'
&& github.event_name != 'schedule'
&& github.event_name != 'pull_request' }}
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
fail_ci_if_error: False
verbose: True
flags: slow-tests
2 changes: 1 addition & 1 deletion .github/workflows/docker-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ jobs:
docker run --rm ${{ steps.fqirp.outputs.FQIRP }} openfe --version
docker run --rm ${{ steps.fqirp.outputs.FQIRP }} python -c "import gufe; print(gufe.__version__)"
docker run --rm ${{ steps.fqirp.outputs.FQIRP }} pytest --pyargs gufe -v
docker run --rm ${{ steps.fqirp.outputs.FQIRP }} pytest --pyargs openfecli --pyargs openfe -v
docker run --rm ${{ steps.fqirp.outputs.FQIRP }} pytest --pyargs openfe --pyargs openfecli -v

0 comments on commit 87efe47

Please sign in to comment.