add Actions-Version-Updater and use organizational Personal Access Tokens #899
Workflow file for this run
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: miranda | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- HISTORY.rst | |
- pyproject.toml | |
- setup.cfg | |
- miranda/__init__.py | |
pull_request: | |
jobs: | |
lint_and_docs: | |
runs-on: ubuntu-latest | |
name: ${{ matrix.tox-env }} | |
strategy: | |
matrix: | |
tox-env: | |
- black | |
- docs | |
python-version: | |
- "3.8" | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install tox | |
run: pip install tox | |
- name: Run lint and docs testing suite | |
run: tox -e ${{ matrix.tox-env }} | |
env: | |
READTHEDOCS: 1 | |
test: | |
needs: lint_and_docs | |
runs-on: ubuntu-latest | |
name: Test-${{ matrix.tox-env }} | |
strategy: | |
matrix: | |
include: | |
- tox-env: py37 | |
python-version: "3.7" | |
- tox-env: py38-pyston | |
python-version: "3.8" | |
- tox-env: py39-full | |
python-version: "3.9" | |
- tox-env: py310 | |
python-version: "3.10" | |
- tox-env: py311 | |
python-version: "3.11" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install GDAL | |
if: "endsWith(matrix.tox-env, '-full')" | |
run: | | |
sudo apt-get update | |
sudo apt-get install libgdal-dev | |
- name: Install tox | |
run: pip install tox | |
- name: Test with tox | |
run: tox -e ${{ matrix.tox-env }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_FLAG_NAME: run-${{ matrix.tox-env }} | |
COVERALLS_PARALLEL: true | |
finish: | |
needs: test | |
runs-on: ubuntu-latest | |
container: python:3-slim | |
steps: | |
- name: Coveralls Finished | |
run: | | |
pip install --upgrade coveralls | |
coveralls --service=github --finish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |