Bump actions/upload-artifact from 97a0fba1372883ab732affbe8f94b823f91727db to c24449f33cd45d4826c6702db7e49f7cdb9b551d #3449
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '17 22 * * *' | |
permissions: read-all | |
env: | |
OMP_NUM_THREADS: 2 | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/sblauth/cashocs:main | |
options: --user=root | |
steps: | |
- name: Delete current installation in docker image | |
shell: bash | |
run: | | |
source /usr/local/bin/_entrypoint.sh | |
pip uninstall -y cashocs | |
rm -R /home/mambauser/cashocs | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install cashocs | |
shell: bash | |
run: | | |
source /usr/local/bin/_entrypoint.sh | |
pip install .[all] | |
- name: Run tests | |
shell: bash | |
run: | | |
source /usr/local/bin/_entrypoint.sh | |
python3 -m pytest -vv --cov=cashocs --cov-report=xml tests/ | |
- name: Upload coverage to codecov.io | |
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 | |
with: | |
files: coverage.xml | |
token: ${{ secrets.CODECOV_TOKEN }} |