Prepare v1.1.1 (#252) #573
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
- "v*" | |
tags: | |
- "v*" | |
pull_request: | |
schedule: | |
- cron: '0 3 * * *' # daily, at 3am | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- run: pip install -r requirements-dev.txt | |
- run: flake8 --exclude=".git,docs" --ignore=E501,W504 . | |
vermin: | |
name: Check that python 2.6/3.0 is supported | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- run: pip install -r requirements-dev.txt | |
- run: vermin aerofiles | |
tests: | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: | |
- "3.x" | |
- "pypy3.9" | |
- "pypy3.10" | |
name: "Tests (Python: ${{ matrix.python-version }})" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: pip install -r requirements-dev.txt | |
- run: ./download_test_data.sh | |
- run: pytest --cov aerofiles --cov-report term-missing --color=yes | |
release: | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
needs: | |
- lint | |
- tests | |
- vermin | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- run: pip install -r requirements-dev.txt | |
- run: python setup.py sdist | |
- uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_TOKEN }} |