Merge pull request #1877 from hartwork/npm-autoupdate #5663
This file contains hidden or 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: Build and test using Docker | |
| on: | |
| pull_request: | |
| push: | |
| schedule: | |
| - cron: '0 16 * * 5' # Every Friday 4pm | |
| workflow_dispatch: | |
| jobs: | |
| build_and_test: | |
| name: Build and test using Docker | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [3.11, 3.14] # oldest and most recent, no need for in-between | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| # NOTE: docker-compose breaks with Python >=3.13 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 | |
| with: | |
| python-version: 3.12 | |
| - name: Install dependencies | |
| run: |- | |
| pip install \ | |
| --disable-pip-version-check \ | |
| --user \ | |
| --no-warn-script-location \ | |
| 'docker<7' \ | |
| 'PyYAML==5.3.1' \ | |
| 'requests<2.32.0' \ | |
| 'urllib3<2' \ | |
| docker-compose | |
| echo "PATH=${HOME}/.local/bin:${PATH}" >> "${GITHUB_ENV}" | |
| - name: Configure Docker environment | |
| run: |- | |
| docker network create --internal ssl-reverse-proxy | |
| tee .env <<-EOF | |
| JAWANNDENN_POSTGRES_NAME=jawanndenn111 | |
| JAWANNDENN_POSTGRES_USER=jawanndenn222 | |
| JAWANNDENN_POSTGRES_PASSWORD=jawanndenn333 | |
| JAWANNDENN_SECRET_KEY=jawanndenn444 | |
| EOF | |
| - name: Build Docker image | |
| env: | |
| PY_VER: ${{ matrix.python-version }} | |
| run: |- | |
| docker-compose build --build-arg "PY_VER=${PY_VER}" | |
| - name: Run tests using Docker | |
| run: |- | |
| docker-compose run jawanndenn test -v2 |