Skip to content

Instantly share code, notes, and snippets.

@Gr1N
Last active January 12, 2020 12:43
Show Gist options
  • Save Gr1N/e8c90f8c5e0a4d76a55c93dde9e8ae08 to your computer and use it in GitHub Desktop.
Save Gr1N/e8c90f8c5e0a4d76a55c93dde9e8ae08 to your computer and use it in GitHub Desktop.
10 things I love about GitHub Actions (services)
services:
postgres:
image: postgres:latest
ports:
- 5432/tcp
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.8
- runs: pip install -U -r requirements.txt
- runs: pytest
env:
POSTGRES_PORT: ${{ job.services.postgres.ports['5432'] }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment