Skip to content

main -> test ( 1 )

main -> test ( 1 ) #9

Workflow file for this run

---
name: test
on:
push:
branches: [master, main]
# only when python files are changed
paths:
- '**.py'
pull_request:
branches: [master, main]
workflow_dispatch:
# set the run-name
run-name: ${{ github.ref_name }} -> test (
${{ github.run_attempt }}
)
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Echo current date and time
id: datetime
run: |
echo "datetime: $(date '+%Y-%m-%d %H:%M:%S')"
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Update pip and install hatch
run: |
export PIP_ROOT_USER_ACTION=ignore
pip install --upgrade pip
pip install hatch
- name: Hatch run test
run: hatch run test