Skip to content

Bump step-security/harden-runner from 2.10.3 to 2.10.4 #744

Bump step-security/harden-runner from 2.10.3 to 2.10.4

Bump step-security/harden-runner from 2.10.3 to 2.10.4 #744

Workflow file for this run

name: Run Python Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
pull-requests: read
jobs:
build:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Mamba with Python 3 and install dependencies
uses: mamba-org/setup-micromamba@0dea6379afdaffa5d528b3d1dabc45da37f443fc # v2.0.4
with:
cache-downloads: true
cache-environment: true
activate-environment: jsmet
environment-file: environment.yml
python-version: 3.9
auto-activate-base: false
- name: Run pytest coverage
shell: bash -el {0}
run: |
python -m pytest --cov=./jsmetrics --cov-report xml
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
with:
path-to-lcov: coverage.xml