chore: test build workflow #956
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: Test the package with pytest | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
pytest: | |
name: Test with pytest | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
# ubuntu 22.04 has deprecated python 3.6 | |
python-version: [ "3.8", "3.9", "3.10","3.11", "3.12"] | |
steps: | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: 'Build and install easygraph' | |
# still investigating issues, use the dummy workflow for now | |
# uses: tddschn/install-easygraph@master | |
uses: tddschn/install-easygraph/dummy@master | |
with: | |
# use current repo | |
repository: '${{ github.repository }}' | |
# use current branch | |
ref: '${{ github.ref }}' | |
install-pytorch: 'true' | |
install-lxml: 'true' | |
extra-modules-to-install: 'optuna torch_scatter torch_geometric' | |
- uses: actions/checkout@v3 | |
- name: Test with pytest | |
run: | | |
pytest --disable-warnings |