Skip to content

Merge pull request #200 from NicolasCarrezCSOD/distant-model-headers #23

Merge pull request #200 from NicolasCarrezCSOD/distant-model-headers

Merge pull request #200 from NicolasCarrezCSOD/distant-model-headers #23

Workflow file for this run

name: tests
defaults:
run:
shell: bash
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
tests:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
name: ${{ fromJson('{"macos-latest":"macOS","windows-latest":"Windows","ubuntu-latest":"Ubuntu"}')[matrix.os] }} ${{ matrix.python-version }} ${{ matrix.nox-session}}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set Up Python - ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Run Tests
run: make ci_tests
env:
OS_NAME: "${{ matrix.os }}"
PYTHON_VERSION: "${{ matrix.python-version }}"
- name: Add & Commit Badges
if: ${{matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' && github.ref == 'refs/heads/main'}}
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add docs/badges
git diff-index --quiet HEAD || git commit -m "generate badges"
git push
- name: 'Upload coverage report'
if: ${{matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' && github.ref == 'refs/heads/main'}}
uses: actions/upload-artifact@v3
with:
name: coverage
path: docs/coverage
retention-days: 1