Skip to content

Merge pull request #150 from Thomasjkeel/dependabot/github_actions/ac… #568

Merge pull request #150 from Thomasjkeel/dependabot/github_actions/ac…

Merge pull request #150 from Thomasjkeel/dependabot/github_actions/ac… #568

Workflow file for this run

name: Run Python Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Set up Mamba with Python 3 and install dependencies
uses: mamba-org/setup-micromamba@422500192359a097648154e8db4e39bdb6c6eed7 # v1.8.1
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@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
with:
path-to-lcov: coverage.xml