-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 961 Bytes
/
test.yml
File metadata and controls
32 lines (26 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.12.3
architecture: x64
- run: pip install -r requirements.txt
- run: pip install -r requirements_dev.txt
- run: ./registry/manage.py makemigrations --dry-run --check
- run: ./registry/manage.py migrate
- env:
SALESFORCE_USERNAME: ${{ secrets.SALESFORCE_USERNAME }}
SALESFORCE_PASSWORD: ${{ secrets.SALESFORCE_PASSWORD }}
SALESFORCE_SECURITY_TOKEN: ${{ secrets.SALESFORCE_SECURITY_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # coveralls
run: ./registry/manage.py test -v 3 tests
#- run: coverage run --source='./registry' ./registry/manage.py test -v 3 tests
# - env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: coveralls --service=github