Skip to content

Renovations, spring 2024 #20

Renovations, spring 2024

Renovations, spring 2024 #20

Workflow file for this run

name: build
"on":
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: "3.8"
DJANGO: "django>=2.0,<3"
- python-version: "3.8"
DJANGO: "django>=3.0,<4"
- python-version: "3.10"
DJANGO: "django>=4.0,<5"
steps:
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python-version }}"
#- name: Cache multiple paths
# uses: actions/cache@v2
# with:
# path: $HOME/.cache/pip
# key: '${{ runner.os }}-${{ hashFiles(''TODO'') }}'
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
cache: pip
- uses: actions/checkout@v4
- run: "pip install $DJANGO -e .[dev,poster]"
env:
DJANGO: "${{ matrix.DJANGO }}"
- run: py.test -vvv --cov .
- uses: codecov/codecov-action@v4
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: actions/checkout@v4
- uses: pre-commit/[email protected]
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: actions/checkout@v4
- run: pip install build
- run: python -m build