-
Notifications
You must be signed in to change notification settings - Fork 35
67 lines (63 loc) · 2.17 KB
/
tests.yaml
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
name: ESPEI tests
on: [push, pull_request]
jobs:
# sphinx-build: Check that the documentation builds html with no warnings
sphinx-build:
name: Run sphinx-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
# Development version for development docs
- name: Install pycalphad development version
run: pip install git+https://github.com/pycalphad/pycalphad.git@develop
- run: pip install -e .[dev]
- run: pip list
# Build HTML and LaTeX docs
# Treat all warnings as errors and "keep-going" to collect all warnings
- name: Build HTML
shell: bash
run: |
cd docs
make SPHINXOPTS="-W --keep-going" html
# PyTest: Run automated tests with PyTest using both release and development versions of pycalphad
PyTest-release:
name: Test Python ${{ matrix.python-version }} - pycalphad release
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 100
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch the entire repo history, required to guarantee versioneer will pick up the tags
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install --editable .[dev]
- run: pip list
- run: pytest -v
PyTest-develop:
name: Test Python ${{ matrix.python-version }} - pycalphad develop
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 100
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch the entire repo history, required to guarantee versioneer will pick up the tags
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pycalphad development version
run: pip install git+https://github.com/pycalphad/pycalphad.git@develop
- run: pip install --editable .[dev]
- run: pip list
- run: pytest -v