/
valemobil
/
portalocker
Обзор
Документация
Войти
/
valemobil
/
portalocker
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
.github/workflows/python-package.yml
61 строка
2 KB
Rick van Hattem
disabled python 3.12 testing until the test environments supports it
16 сен 2023, 13:41
Не верифицирован
16 сен 2023, 13:41
58d2552
Код
Авторство
О чём код?
name: test on: push: branches: [ develop, master ] pull_request: branches: [ develop ] env: FORCE_COLOR: 1 jobs: # Run os specific tests on the slower OS X/Windows machines windows_osx: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: python-version: ['3.8', '3.9', '3.10', '3.11'] os: ['macos-latest', 'windows-latest'] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} cache: 'pip' - name: Python version run: python --version - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel python -m pip install -e ".[tests]" - name: Test with pytest run: python -m pytest # Run all tests including Redis on Linux linux: runs-on: ubuntu-latest strategy: fail-fast: false matrix: python-version: ['3.8', '3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v4 - name: Start Redis uses: supercharge/redis-github-action@1.7.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} cache: 'pip' - name: Python version run: python --version - name: Install dependencies run: | python -m pip install tox - name: Test with pytest run: tox -p all