kopia lustrzana https://github.com/collective/icalendar
53 wiersze
1.3 KiB
YAML
53 wiersze
1.3 KiB
YAML
|
name: tests
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ main ]
|
||
|
pull_request:
|
||
|
schedule:
|
||
|
- cron: '14 7 * * 0' # run once a week on Sunday
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
strategy:
|
||
|
matrix:
|
||
|
config:
|
||
|
# [Python version, tox env]
|
||
|
- ["2.7", "py27"]
|
||
|
- ["3.6", "py36"]
|
||
|
- ["3.7", "py37"]
|
||
|
- ["3.8", "py38"]
|
||
|
- ["3.9", "py39"]
|
||
|
- ["3.10", "py310"]
|
||
|
- ["pypy3", "pypy3"]
|
||
|
|
||
|
runs-on: ubuntu-latest
|
||
|
name: ${{ matrix.config[1] }}
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: Set up Python
|
||
|
uses: actions/setup-python@v2
|
||
|
with:
|
||
|
python-version: ${{ matrix.config[0] }}
|
||
|
- name: Pip cache
|
||
|
uses: actions/cache@v2
|
||
|
with:
|
||
|
path: ~/.cache/pip
|
||
|
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
|
||
|
restore-keys: |
|
||
|
${{ runner.os }}-pip-${{ matrix.config[0] }}-
|
||
|
${{ runner.os }}-pip-
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
python -m pip install --upgrade pip
|
||
|
pip install tox
|
||
|
- name: Test
|
||
|
run: tox -e ${{ matrix.config[1] }}
|
||
|
- name: Coverage
|
||
|
run: |
|
||
|
pip install coveralls coverage-python-version
|
||
|
coveralls --service=github
|
||
|
env:
|
||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|