Last active
January 12, 2020 12:43
-
-
Save Gr1N/e8c90f8c5e0a4d76a55c93dde9e8ae08 to your computer and use it in GitHub Desktop.
10 things I love about GitHub Actions (services)
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
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