-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.1 KB
/
testing.yml
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
33
34
35
36
37
38
name: Python package
on:
push:
branches:
- testing
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Start DB
run: docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=P4ssword' -d -p 1433:1433 mcr.microsoft.com/mssql/server:2017-CU29-ubuntu-16.04
- uses: actions/checkout@v2
- name: Add django repo
uses: actions/checkout@v2
with:
repository: 'django/django'
ref: 'stable/4.2.x'
path: 'django'
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -r tests/requirements.txt
pip install .
pip install ./django/
- name: Runtests
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)/django
cp tests/pytds_settings.py django/tests/
cd django/tests
rm -rf m2m_through_regress many_to_one_null serializers
python runtests.py --settings pytds_settings --failfast