Skip to content

Commit

Permalink
Merge pull request #10 from nexusformat/main
Browse files Browse the repository at this point in the history
Update main to NIAC version
  • Loading branch information
sanbrock authored Sep 16, 2022
2 parents 8b75670 + 8a19138 commit 8acc2e3
Show file tree
Hide file tree
Showing 89 changed files with 3,236 additions and 3,249 deletions.
11 changes: 0 additions & 11 deletions .github/env-workflow.yml

This file was deleted.

95 changes: 95 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: CI

on:
push:
branches:
- main # push commit to the main branch
tags:
- 'v2*' # push tag starting with "v2" to the main branch
pull_request:
branches:
- main # pull request to the main branch
workflow_dispatch: # allow manual triggering

defaults:
run:
shell: bash

jobs:
build-linux:
name: CI py${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
max-parallel: 5
env:
python_version: ${{ matrix.python-version }}

steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Deploy Information
if: ${{ startsWith(github.ref, 'refs/tags') && env.python_version == '3.7' }}
run: |
echo "The HTML NeXus User Manual will be pushed to"
echo " https://github.com/nexusformat/definitions/tree/gh-pages"
echo "The HTML NeXus User Manual will be deployed on"
echo " https://nexusformat.github.io/definitions/"
- name: Install Requirements
run: |
python3 -m pip install --upgrade pip setuptools
make install
python3 -m pip list
- name: Check Code Style
run: |
make style
- name: Run Tests
run: |
make test
- name: Install LaTeX
run: |
sudo apt-get update -y && \
sudo apt-get install -y \
latexmk \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended
- name: Generate build files
run: |
make prepare
- name: Build Impatient Guid
run: |
make impatient-guide
ls -lAFgh build/impatient-guide/build/html/index.html
ls -lAFgh build/impatient-guide/build/latex/NXImpatient.pdf
- name: Build User Manual
run: |
make pdf
make html
ls -lAFgh build/manual/build/html/index.html
ls -lAFgh build/manual/build/latex/nexus.pdf
- name: Build and Commit the User Manual
if: ${{ startsWith(github.ref, 'refs/tags') && env.python_version == '3.7' }}
uses: sphinx-notes/pages@master
with:
# path to the conf.py directory
documentation_path: build/manual/source

- name: Deploy the User Manual
if: ${{ startsWith(github.ref, 'refs/tags') && env.python_version == '3.7' }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
113 changes: 0 additions & 113 deletions .github/workflows/publish-sphinx.yml

This file was deleted.

77 changes: 0 additions & 77 deletions .github/workflows/syntax-checks.yml

This file was deleted.

31 changes: 12 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
*.swp
*.pyc
sphinx/build
manual/build
manual/pdf
manual/source/.introduction.rst.swp
manual/source/nexus.pdf
manual/source/nxdl_desc.rst
manual/source/*.table
manual/source/classes/*/NX*.rst
manual/source/classes/*/*.nxdl.xml
manual/source/classes/contributed_definitions/canSAS
manual/makelog.txt
/build/
# Hidden files
.*

# Python byte / compiled / optimized
*.py[cod]
__pycache__/

# Build artifacts
build/
makelog.txt

# Unknown
/python/
impatient-guide/_build
.DS_Store
__github_creds__.txt

# Microsoft VSCode editor configuration
.vscode
17 changes: 0 additions & 17 deletions .project

This file was deleted.

8 changes: 0 additions & 8 deletions .pydevproject

This file was deleted.

3 changes: 0 additions & 3 deletions .settings/org.eclipse.core.resources.prefs

This file was deleted.

Loading

0 comments on commit 8acc2e3

Please sign in to comment.