Skip to content

Add md5 and basename file parsers (#23) #31

Add md5 and basename file parsers (#23)

Add md5 and basename file parsers (#23) #31

Workflow file for this run

name: Test slurmise
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-and-lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Hatch
run: pip install hatch
- name: Install dependencies
run: hatch env create
- name: Run tests
run: hatch test --cover --randomize
- name: Run linter
run: hatch fmt --check --linter
- name: Update Coverage Badge
# GitHub actions: default branch variable
# https://stackoverflow.com/questions/64781462/github-actions-default-branch-variable
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
uses: we-cli/coverage-badge-action@main