CI::FIXED:: Ensure all required python packages are listed in require… #9
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: Django build and test CI | |
on: | |
push: | |
branches: [ "master", "release/*", "dev" ] | |
pull_request_target: | |
branches: [ "master", "release/*", "dev" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pip-tools | |
# Ensure all packages are included for every python version (required packages' version are not upgraded) | |
pip-compile --allow-unsafe --generate-hashes --output-file=requirements.txt requirements.in | |
pip install -r requirements.txt | |
- name: Run Tests | |
run: | | |
python manage.py check | |
python manage.py test |