Back to development: 3.5 #14
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
# Generated by nens-meta. | |
# See https://nens-meta.readthedocs.io/en/latest/config-files.html for info. | |
# If you want this file to be left alone, add "nens_meta_leave_alone" in | |
# all caps somewhere in this file in a comment. | |
# | |
name: nens-meta | |
on: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- master | |
- main | |
workflow_dispatch: | |
jobs: | |
tox: | |
name: tox | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
include: | |
- python-version: "3.11" | |
tox-env: "lint" | |
- python-version: "3.11" | |
tox-env: "coverage" | |
- python-version: "3.10" | |
tox-env: "py310" | |
- python-version: "3.11" | |
tox-env: "py311" | |
- python-version: "3.12" | |
tox-env: "py312" | |
- python-version: "3.11" | |
tox-env: "build_package" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('tox.ini') }} | |
restore-keys: | | |
${{ runner.os }}-pip-${{ matrix.python-version }}- | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: python -m pip install tox | |
- name: Actually run ${{ matrix.tox-env }} | |
run: | | |
touch for_step_summary.md | |
tox -e ${{ matrix.tox-env }} | |
cat for_step_summary.md >> $GITHUB_STEP_SUMMARY | |
### Extra lines below are preserved ### |