/
niceSOFT
/
python3-installer
Обзор
Документация
Войти
/
niceSOFT
/
python3-installer
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
0.3.0
.github/workflows/ci.yml
51 строка
1 KB
Hugo van Kemenade
Test Python 3.10 (#79)
10 окт 2021, 11:43
Не верифицирован
10 окт 2021, 11:43
aa3ad85
Код
Авторство
О чём код?
name: CI on: pull_request: push: branches: [main] jobs: tests: name: tests / ${{ matrix.os }} / ${{ matrix.python-version }} runs-on: ${{ matrix.os }}-latest strategy: matrix: os: [Windows, Ubuntu, MacOS] python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] include: # Only run PyPy jobs, on Ubuntu. - os: Ubuntu python-version: pypy2 - os: Ubuntu python-version: pypy3 steps: - uses: actions/checkout@v2 # Get Python to test against - uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} # Nox needs a recent Python 3 version (can't run on Python 2 / PyPy 2) - uses: actions/setup-python@v2 with: python-version: 3.x # Setup pip's cache - name: Save date (for cache) id: date run: echo "::set-output name=date::$(date +%F)" - name: Save pip cache dir id: pip-cache-dir run: echo "::set-output name=dir::$(pip cache dir)" - name: pip cache uses: actions/cache@v1 with: path: ${{ steps.pip-cache-dir.outputs.dir }} key: pip-v1-${{ runner.os }}-${{ steps.date.outputs.date }} restore-keys: pip-v1-${{ runner.os }} - run: pip install nox - run: nox -s test-${{ matrix.python-version }}