Skip to content

dt4acc from PyPI

dt4acc from PyPI #23

Workflow file for this run

name: dt4acc from PyPI
on:
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '30 5 * * 0'
jobs:
pypi:
# Build and test only, use pre-generated SWIG wrappers, install from PyPI
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
# Checkout the repository contents
- name: Checkout dt4acc code
uses: actions/checkout@v4
# Setup Python version
- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
# Install dependencies
- name: Install apt dependencies
run: |
sudo apt update
sudo apt install python3-all-dev
# Install Python dependencies
- name: Python dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install pytest pycodestyle
- name: install
run: |
python -m pip install dt4acc
- name: test
run: |
# make sure to move out of the source directory
cd /tmp
python -m pytest -s /home/runner/work/hz-b/dt4acc/tests