sscu-budapest/datazimmer

View on GitHub
.github/workflows/compatibility_test.yml

Summary

Maintainability
Test Coverage
name: OS Compatibility Test

on:
  pull_request:
    branches:
      - main
  push:
    branches:
      - main

jobs:
  comp_test:
    strategy:
      matrix:
        os: [ubuntu-latest, windows-2022, windows-2019, macos-11, macos-10.15]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v4
        with:
          python-version: "3.10"
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -e .[test,profile,collect,zenodo]
      - name: Setup Git
        run: |
          git config --global receive.denyCurrentBranch updateInstead
          git config --global init.defaultBranch main
          git config --global user.email "leo@dumbartonserum.com"
          git config --global user.name "Leo Dumbarton"
      - name: Test
        env:
          POSTGRES_HOST: sqlite
          ZENODO_SANDBOX_TOKEN: ${{ secrets.ZENODO_SANDBOX_TOKEN }}
        run: |
          branb test