Skip to content

Commit

Permalink
ci: updated according to tox-gh; use codecov-cli to upload report
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Feb 28, 2025
1 parent aa521b9 commit 6a50d4a
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@ jobs:
with:
enable-cache: true

- name: Set up Python ${{ matrix.python }}
run: uv python install ${{ matrix.python-version }}
- name: Install Python
if: matrix.python != '3.13'
run: uv python install --python-preference only-managed ${{ matrix.python }}

- name: Install dependencies
run: |
uv sync --all-extras
uv pip install codecov
uv tool install tox --with tox-uv
uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv --with tox-gh
- name: Install R
if: matrix.test_server
Expand All @@ -66,19 +68,24 @@ jobs:
sudo Rscript --vanilla -e "if (!(requireNamespace('BiocManager', quietly=TRUE))) { install.packages(c('BiocManager', 'curl'), repos='https://cloud.r-project.org/') }; BiocManager::install('OmnipathR')"
Rscript --vanilla -e "packageVersion('OmnipathR')"
- name: Test
- name: Set up test suite
env:
TOX_GH_MAJOR_MINOR: ${{ matrix.python }}
run: |
tox run -vv --notest --skip-missing-interpreters false
- name: Run tests
env:
PLATFORM: ${{ matrix.platform }}
TOXENV: py${{ matrix.python-version | replace('.', '') }}
TOX_GH_MAJOR_MINOR: ${{ matrix.python }}
run: |
tox -vv
tox run -vv --skip-pkg-install
- name: Upload coverage to Codecov
if: success()
env:
CODECOV_NAME: ${{ matrix.python }}-${{ matrix.os }}
run: |
uv run codecov --no-color --required --flags unittests
uv run codecovcli --verbose upload-process -t ${{ secrets.CODECOV_TOKEN }} -n $CODECOV_NAME -F unittests
deploy:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
Expand Down

0 comments on commit 6a50d4a

Please sign in to comment.