-
Notifications
You must be signed in to change notification settings - Fork 21
54 lines (50 loc) · 1.88 KB
/
python-app.yml
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
# 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@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
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@v2
with:
# Skip running of sometimes problematic brew update command on macOS.
# Remove after resolution of https://github.com/ts-graphviz/setup-graphviz/issues/593
macos-skip-brew-update: 'true' # default false
- 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