Skip to content

Remove redundant steps with tox_job #305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 9 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,22 @@ jobs:
run: python -m pip install --upgrade pip tox
- name: Run tox
run: tox -e "$(echo py${{ matrix.python-version }} | sed -e 's/[.]//g;s/pypypy/pypy/')" --skip-missing-interpreters false
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: python -m pip install --upgrade pip tox
- name: Run tox
run: tox -e docs --skip-missing-interpreters false
flake8:
tox_job:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tox_job: [docs, flake8]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.x
- name: Install dependencies
run: python -m pip install --upgrade pip tox
- name: Tox
run: tox -e flake8 --skip-missing-interpreters false
- name: Run tox ${{ matrix.tox_job }}
run: tox -e ${{ matrix.tox_job }} --skip-missing-interpreters false
CodeQL:
runs-on: ubuntu-latest
permissions:
Expand Down