CI #1906
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' # every day at midnight | |
jobs: | |
build: | |
env: | |
IDT_CREDENTIALS: ${{ secrets.IDT_CREDENTIALS }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# Default builds are on Ubuntu | |
os: [ubuntu-latest] | |
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] | |
include: | |
# Also test on macOS and Windows using the latest Python 3 | |
- os: macos-latest | |
python-version: 3.11 # Return to 3.x after resolution of https://github.com/RDFLib/pySHACL/issues/212 | |
- os: windows-2019 | |
python-version: 3.11 # Return to 3.x after resolution of https://github.com/RDFLib/pySHACL/issues/212 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pytest | |
python -m pip install interrogate | |
- name: Setup Graphviz | |
uses: ts-graphviz/setup-graphviz@v1 | |
- name: Show Node.js version | |
run: | | |
node --version | |
- name: Test with pytest | |
run: | | |
pip install . | |
echo "$IDT_CREDENTIALS" > test_secret_idt_credentials.json | |
pytest --ignore=test/test_docstr_coverage.py -s |