Merge pull request #38 from fractal-analytics-platform/minors #110
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: Tests | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token#defining-access-for-the-github_token-permissions | |
permissions: {} | |
jobs: | |
examples: | |
runs-on: ubuntu-latest | |
services: | |
mailpit: | |
image: axllent/mailpit | |
ports: | |
- 1025:1025 | |
- 8025:8025 | |
env: | |
MP_SMTP_AUTH: "[email protected]:fakepassword" | |
MP_SMTP_AUTH_ALLOW_INSECURE: true | |
# Options to speed up the "Waiting for all services to be ready" step | |
options: >- | |
--health-interval 1s | |
--health-timeout 1s | |
--health-retries 20 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- run: pip install -e .[dev] | |
- run: pytest -vv --log-cli-level info -s |