Merge pull request #1201 from hartwork/dependabot/pip/aiohappyeyeball… #3688
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: 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 | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.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 | |
run: |- | |
docker-compose build | |
- name: Run tests using Docker | |
run: |- | |
docker-compose run jawanndenn test -v2 |