kopia lustrzana https://github.com/collective/icalendar
Use GitHub Actions.
rodzic
90c0593506
commit
a92f20387f
|
|
@ -0,0 +1,55 @@
|
||||||
|
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.4", "py34"]
|
||||||
|
- ["3.5", "py35"]
|
||||||
|
- ["3.6", "py36"]
|
||||||
|
- ["3.7", "py37"]
|
||||||
|
- ["3.8", "py38"]
|
||||||
|
- ["3.9", "py39"]
|
||||||
|
- ["3.10", "py310"]
|
||||||
|
- ["pypy", "pypy"]
|
||||||
|
- ["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 }}
|
||||||
|
|
@ -18,4 +18,5 @@ parts/
|
||||||
pip-selfcheck.json
|
pip-selfcheck.json
|
||||||
src/icalendar.egg-info/
|
src/icalendar.egg-info/
|
||||||
!.gitattributes
|
!.gitattributes
|
||||||
|
!.github
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ New features:
|
||||||
|
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
|
|
||||||
- *add item here*
|
- Test with GitHub Actions. [maurits]
|
||||||
|
|
||||||
|
|
||||||
4.0.9 (2021-10-16)
|
4.0.9 (2021-10-16)
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue