6 use latest inchi from git #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test rinchi_lib library. | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout RInChI. | |
uses: actions/checkout@v4 | |
with: | |
path: RInChI | |
- name: Checkout InChI. | |
uses: actions/checkout@v4 | |
with: | |
repository: IUPAC-InChI/InChI | |
path: InChI | |
- name: rinchi_lib build. | |
run: cd RInChI/src/rinchi_lib/ ; make -f Makefile-64bit | |
- name: rinchi_lib check symbol visibility. | |
# "! nm -D ..." tests that "INCHIGEN_Create" should NOT be present as symbol in .so file. | |
run: cd RInChI/src/rinchi_lib/ ; ! nm -D librinchi.so | grep INCHIGEN_Create | |
## Python2 has been EOL for years, and has been removed from GitHub runner images. | |
## Removing official RInChI support for Python2 as well. | |
## - name: rinchi_lib test - python2. | |
## run: cd RInChI/src/rinchi_lib/ ; python2 test.py > /tmp/py2-rinchi-lib-test-out.txt ; diff /tmp/py2-rinchi-lib-test-out.txt test.py.expected_output.txt | |
- name: rinchi_lib test - python3. | |
run: cd RInChI/src/rinchi_lib/ ; python3 test.py > /tmp/py3-rinchi-lib-test-out.txt ; diff /tmp/py3-rinchi-lib-test-out.txt test.py.expected_output.txt | |