[FIX] Budget #1277
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: | |
pull_request: | |
branches: | |
- "14.0*" | |
push: | |
branches: | |
- "14.0" | |
- "14.0-ocabot-*" | |
jobs: | |
unreleased-deps: | |
runs-on: ubuntu-latest | |
name: Detect unreleased dependencies | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
for reqfile in requirements.txt test-requirements.txt ; do | |
if [ -f ${reqfile} ] ; then | |
result=0 | |
# reject non-comment lines that contain a / (i.e. URLs, relative paths) | |
grep "^[^#].*/" ${reqfile} || result=$? | |
if [ $result -eq 0 ] ; then | |
echo "Unreleased dependencies found in ${reqfile}." | |
exit 1 | |
fi | |
fi | |
done | |
test: | |
runs-on: ubuntu-latest | |
container: ${{ matrix.container }} | |
name: ${{ matrix.name }} | |
services: | |
postgres: | |
image: postgres:9.6 | |
env: | |
POSTGRES_USER: odoo | |
POSTGRES_PASSWORD: odoo | |
POSTGRES_DB: odoo | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- uses: codecov/codecov-action@v1 |