Sim search b2f #808
Workflow file for this run
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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
test: | |
environment: Env_for_Actions | |
# The type of runner that the job will run on | |
runs-on: [ubuntu-latest] | |
# Container with libs (no src) | |
container: grololo06/ecotaxa:latest | |
# Service containers to run with `container-job` | |
services: | |
# Label used to access the service container | |
postgres: | |
# Docker Hub image | |
image: postgres:14.9 | |
# Provide the password for postgres | |
env: | |
POSTGRES_PASSWORD: postgres12 | |
# Set health checks to wait until postgres has started | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
# Run both tests and coverage | |
- name: Run tox in QA | |
working-directory: ./QA/py | |
run: | | |
PATH=/venv/bin PYTHONPATH=. tox | |
env: | |
# The hostname used to communicate with the PostgreSQL service container | |
POSTGRES_HOST: postgres | |
# The default PostgreSQL port | |
POSTGRES_PORT: 5432 | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true # optional (default = false) |