| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
name: convertdate |
| 8 |
|
| 9 |
on: |
| 10 |
push: |
| 11 |
pull_request: |
| 12 |
branches: [master] |
| 13 |
|
| 14 |
jobs: |
| 15 |
build: |
| 16 |
runs-on: ubuntu-latest |
| 17 |
strategy: |
| 18 |
matrix: |
| 19 |
python-version: [3.7, 3.8, 3.9, "3.10.0"] |
| 20 |
steps: |
| 21 |
- uses: actions/checkout@v1 |
| 22 |
- name: Set up Python ${{ matrix.python-version }} |
| 23 |
uses: actions/setup-python@v2 |
| 24 |
with: |
| 25 |
python-version: ${{ matrix.python-version }} |
| 26 |
cache: 'pip' |
| 27 |
cache-dependency-path: setup.cfg |
| 28 |
- name: Install |
| 29 |
run: | |
| 30 |
python -m pip install --upgrade pip wheel |
| 31 |
pip install ".[tests]" |
| 32 |
- name: Test |
| 33 |
run: make cov |
| 34 |
|
| 35 |
pylint: |
| 36 |
runs-on: ubuntu-latest |
| 37 |
steps: |
| 38 |
- uses: actions/checkout@v1 |
| 39 |
- name: Set up Python ${{ matrix.python-version }} |
| 40 |
uses: actions/setup-python@v2 |
| 41 |
with: |
| 42 |
python-version: 3.9 |
| 43 |
cache: 'pip' |
| 44 |
cache-dependency-path: setup.cfg |
| 45 |
- name: Install |
| 46 |
run: | |
| 47 |
python -m pip install --upgrade pip pylint |
| 48 |
pip install . |
| 49 |
- name: Pylint |
| 50 |
run: make pylint |