forked from nexusformat/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (63 loc) · 2.05 KB
/
syntax-checks.yml
File metadata and controls
71 lines (63 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Syntax Checks
on: [push]
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
steps:
- uses: actions/checkout@v2
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment:
anaconda-test-env-py-${{ matrix.python-version }}
auto-update-conda: true
channel-priority: true
channels: defaults,conda-forge
# environment-file: environment.yml
mamba-version: "*"
python-version: ${{ matrix.python-version }}
use-only-tar-bz2: true # required for caching
- shell: bash -l {0}
run: |
conda info
conda list
conda config --show-sources
conda config --show
conda env list
printenv | sort
# $CONDA is an environment variable pointing to the
# root of the miniconda directory
- name: Install dependencies
run: |
$CONDA/bin/conda env update --file .github/env-workflow.yml --name $ENV_NAME
$CONDA/bin/conda list -r --name $ENV_NAME
env:
PY_VER: ${{ matrix.python-version }}
ENV_NAME: anaconda-test-env-py-${{ matrix.python-version }}
- name: Run tests
run: |
source $CONDA/bin/activate $ENV_NAME
# pytest -vvv ./utils/test_suite.py
python ./utils/test_suite.py
env:
PY_VER: ${{ matrix.python-version }}
ENV_NAME: anaconda-test-env-py-${{ matrix.python-version }}
- name: Build the documentation
run: |
source $CONDA/bin/activate $ENV_NAME
make makebuilddir
pushd build/manual
# CI needs latexmk to execute next line
# make latexpdf && cp build/latex/nexus.pdf build/html/NeXusManual.pdf
cd build
tar czf ../../../docs.tar.gz html
popd
ls -lAGh
env:
PY_VER: ${{ matrix.python-version }}
ENV_NAME: anaconda-test-env-py-${{ matrix.python-version }}