main -> test ( 1 ) #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 | |