Skip to content

chore: Bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.3 to 3.0.5 #2478

chore: Bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.3 to 3.0.5

chore: Bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.3 to 3.0.5 #2478

Workflow file for this run

# This workflow installs Python dependencies, runs unit tests and tracks code coverage statistics
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Unit Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: syne-tune_ubuntu-latest_16-core
strategy:
matrix:
# Run in all these versions of Python
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install .[extra] --upgrade pip
- name: Test with pytest
run: |
pytest -vvv --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
file: ./coverage.xml
env_vars: PYTHON