Start schedule-triggered supply-chain review #166
Workflow file for this run
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 file based on https://gist.github.com/mwouts/9842452d020c08faf9e84a3bba38a66f | |
# See: https://help.github.com/en/actions/reference/software-installed-on-github-hosted-runners | |
# 2020-06-22 - slg - customized | |
# 2020-06-27 - slg - expanded to G++ for MacOS | |
# | |
name: CI (python) | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ['ubuntu-latest', 'macos-latest'] | |
python-version: [3.8, 3.9] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest pytest-cov | |
if [ -r requirements.txt ]; then pip install -r requirements.txt ; fi | |
if [ -r requirements-dev.txt ]; then pip install -r requirements-dev.txt ; fi | |
- name: Install xmllint on ubuntu | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt update | |
sudo apt install --yes libxml2-utils | |
- name: Make check | |
run: make check | |
- name: Make check-tools | |
run: make check-tools | |
- name: Test with pytest | |
run: pytest --cov=dfxml --cov-report=xml . |