You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has worked for me until now, that when I run I get the error shown in the screen capture, no files are found in the provided path. Here are the two screen captures that are relevant
What did you expect to happen?
Files are uploaded and downloaded and coverage reported for the library
How can we reproduce it?
I guess the only way would be to fork the library, open a branch and a corresponding PR. If anyone does that I would suggest testing only one python version and one test folder
Anything else we need to know?
I have tried a number of things
downgrading to v3 (actions/upload-artifact@v3 and actions/download-artifact@v4
I placed a debug step and found that no files were found in the specified path. So nothing was uploaded (and therefore downloaded). I then specified the data_file field in the .coveragerc file, but obtained the same result
Finally I have tried this:
name: pytorch-widedeepon:
push:
branches:
- masterpull_request:
branches:
- masterjobs:
codestyle:
# ..test:
runs-on: ubuntu-latestif: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}strategy:
fail-fast: truematrix:
python-version: ["3.9", "3.10", "3.11"]steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}uses: actions/setup-python@v5with:
python-version: ${{ matrix.python-version }}
- name: Install dependenciesrun: | python -m pip install --upgrade pip python -m pip install pytest-cov codecov faker if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Set coverage directoryrun: echo "COVERAGE_DIR=./coverage_data" >> $GITHUB_ENV
- name: Test with pytestrun: | mkdir -p $COVERAGE_DIR pytest --doctest-modules pytorch_widedeep --cov-report xml:$COVERAGE_DIR/coverage.xml --cov-report term --disable-pytest-warnings --cov=pytorch_widedeep tests/ --cov-config=.coveragerc
- name: Debug - List filesrun: | echo "Contents of the current directory:" ls -la echo "Contents of the coverage directory:" ls -la $COVERAGE_DIR
- name: Upload coverageuses: actions/upload-artifact@v4with:
name: coverage-${{ matrix.python-version }}path: ${{ env.COVERAGE_DIR }}if-no-files-found: errorfinish:
needs: testruns-on: ubuntu-latestif: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10uses: actions/setup-python@v5with:
python-version: "3.10"
- name: Install dependenciesrun: | python -m pip install --upgrade pip python -m pip install coverage
- name: Download all artifactsuses: actions/download-artifact@v4with:
path: coverage-files
- name: Debug - List downloaded filesrun: | echo "Contents of the coverage-files directory:" ls -R coverage-files
- name: Convert coveragerun: | coverage combine coverage-files/*/.coverage coverage xml coverage report --fail-under=90
- name: upload coverage to Codecovuses: codecov/codecov-action@v4with:
token: ${{ secrets.CODECOV_TOKEN }}fail_ci_if_error: true
which did not work either and exited in the line
if-no-files-found: error
again saying no files have been found.
At this point, any help is appreciated
What version of the action are you using?
v4
What are your runner environments?
linux
Are you on GitHub Enterprise Server? If so, what version?
No response
The text was updated successfully, but these errors were encountered:
What happened?
It might not be a bug and maybe more an issue with myself, but at this point I do not know what else to try
This is the look of the test and finish steps in my
build.yaml
fileThis has worked for me until now, that when I run I get the error shown in the screen capture, no files are found in the provided path. Here are the two screen captures that are relevant
What did you expect to happen?
Files are uploaded and downloaded and coverage reported for the library
How can we reproduce it?
I guess the only way would be to fork the library, open a branch and a corresponding PR. If anyone does that I would suggest testing only one python version and one test folder
Anything else we need to know?
I have tried a number of things
actions/upload-artifact@v3
andactions/download-artifact@v4
data_file
field in the.coveragerc
file, but obtained the same resultwhich did not work either and exited in the line
again saying no files have been found.
At this point, any help is appreciated
What version of the action are you using?
v4
What are your runner environments?
linux
Are you on GitHub Enterprise Server? If so, what version?
No response
The text was updated successfully, but these errors were encountered: