public release 4.2.0 - see README.md and CHANGES.md for details
This commit is contained in:
51
.gitea/workflows/build-test.yaml
Normal file
51
.gitea/workflows/build-test.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
name: build and test the package
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: check runner environment
|
||||
run: |
|
||||
uname -a
|
||||
lsb_release -a
|
||||
echo "Runner home: $HOME"
|
||||
|
||||
- name: check out
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: set up compilers
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install binutils build-essential g++ gcc gfortran libblas-dev liblapack-dev openmpi-bin openmpi-common sqlite3
|
||||
|
||||
- name: set up python
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: install uv
|
||||
uses: astral-sh/setup-uv@v7
|
||||
with:
|
||||
version: "0.9.18"
|
||||
enable-cache: true
|
||||
|
||||
- name: lint with ruff
|
||||
# configuration is in pyproject.toml
|
||||
run: |
|
||||
uvx ruff check --extend-exclude=.venv,build pmsco
|
||||
|
||||
- name: install dependencies
|
||||
run: uv sync --locked --all-extras --dev
|
||||
|
||||
- name: tests
|
||||
run: |
|
||||
uv run nosetests
|
||||
45
.gitea/workflows/deploy-pages.yaml
Normal file
45
.gitea/workflows/deploy-pages.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
name: build and deploy documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: gitea.psi.ch/pearl/docs
|
||||
credentials:
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.package_token }}
|
||||
|
||||
steps:
|
||||
- name: checkout
|
||||
working-directory: /app
|
||||
run: |
|
||||
git clone --branch master --single-branch https://${{ secrets.REPO_TOKEN }}@gitea.psi.ch/${{ github.repository }}.git
|
||||
|
||||
- name: build
|
||||
working-directory: /app/pmsco/docs
|
||||
run: |
|
||||
export REVISION=$(shell git describe --always --tags --dirty --long || echo "unknown, "`date +"%F %T %z"`)
|
||||
export OUTDIR=/app/build
|
||||
doxygen config.dox
|
||||
|
||||
- name: configure git
|
||||
working-directory: /app/pmsco
|
||||
run: |
|
||||
git config --global user.name "Gitea Actions"
|
||||
git config --global user.email "actions@gitea.local"
|
||||
|
||||
- name: push to gitea-pages
|
||||
working-directory: /app/pmsco
|
||||
run: |
|
||||
git checkout --orphan gitea-pages
|
||||
git reset --hard
|
||||
cp -r /app/build/html/* .
|
||||
git add .
|
||||
git commit -m "Deploy documentation to gitea"
|
||||
git push -f https://${{ secrets.REPO_TOKEN }}@gitea.psi.ch/${{ github.repository }}.git gitea-pages
|
||||
|
||||
Reference in New Issue
Block a user