Fix URL for sudo configuration #7
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
# This is a GitHub workflow defining a set of jobs with a set of steps. | |
# ref: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions | |
# | |
name: Test | |
# Trigger the workflow's on all PRs but only on pushed tags or commits to | |
# main/master branch to avoid PRs developed in a GitHub fork's dedicated branch | |
# to trigger. | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
jobs: | |
pytest: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 10 | |
strategy: | |
# Keep running even if one variation of the job fail | |
fail-fast: false | |
matrix: | |
python: ['3.5', '3.6', '3.7', '3.8', '3.9'] | |
steps: | |
- uses: actions/checkout@v2 | |
# NOTE: actions/setup-python@v2 make use of a cache within the GitHub base | |
# environment and setup in a fraction of a second. | |
- name: Install Python ${{ matrix.python }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install Python dependencies | |
run: | | |
pip install --upgrade pip | |
pip install --pre -r test-requirements.txt -e . | |
- name: Run pytest | |
run: | | |
pytest -v --color=yes --cov=sudospawner sudospawner/tests | |
- name: Submit codecov report | |
run: | | |
codecov |