This commit is contained in:
aaron burtle 2024-06-14 14:10:34 -07:00
Родитель 7f8aa6666f
Коммит 8ff96b61f4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 8C4893BD7A304E21
1 изменённых файлов: 24 добавлений и 20 удалений

44
.github/workflows/ci.yaml поставляемый
Просмотреть файл

@ -15,30 +15,34 @@ on:
branches: [ master ]
workflow_dispatch:
env:
USER: ${{ secrets.USER }}
PASSWORD: ${{ secrets.PASSWORD }}
PASSWORD_AIRLINE_USER: ${{ secrets.PASSWORD_AIRLINE_USER }}
PASSWORD_AIRLINE_USER_DBOWNER: ${{ secrets.PASSWORD_AIRLINE_USER_DBOWNER }}
DRIVER: "{ODBC Driver 17 for SQL Server}"
#env:
# USER: ${{ secrets.USER }}
# PASSWORD: ${{ secrets.PASSWORD }}
# PASSWORD_AIRLINE_USER: ${{ secrets.PASSWORD_AIRLINE_USER }}
# PASSWORD_AIRLINE_USER_DBOWNER: ${{ secrets.PASSWORD_AIRLINE_USER_DBOWNER }}
# DRIVER: "{ODBC Driver 17 for SQL Server}"
jobs:
SQL19:
runs-on: windows-2022
strategy:
matrix:
include:
- r-version: "3.5.2"
sql-platform: "box"
- python-version: "3.7.1"
sql-platform: "box"
#strategy:
# matrix:
# include:
# - r-version: "3.5.2"
# sql-platform: "box"
# - python-version: "3.7.1"
# sql-platform: "box"
#- r-version: "4.2.0"
# sql-platform: "box"
env:
# Define CI to skip some test case.
CI: True
DATABASE: ${{ secrets.DATABASE }}
# DATABASE: ${{ secrets.DATABASE }}
r-version: "3.5.2"
python-version: "3.7.1"
sql-platform: "box"
defaults:
run:
@ -109,10 +113,10 @@ jobs:
- name: Restore AirlineTestDB
run: sqlcmd -S localhost -U SA -P %dbPassword% -l 5 -Q "USE [master]; RESTORE DATABASE [AirlineTestDB] FROM DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Backup\AirlineTestDB.bak' WITH FILE = 1, MOVE N'AirlineTestDB' TO N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\DATA\AirlineTestDB_Primary.mdf', MOVE N'AirlineTestDB_log' TO N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\DATA\AirlineTestDB_Primary.ldf', NOUNLOAD, STATS = 5;"
- name: Set up R ${{ matrix.r-version }} Runtime
- name: Set up R ${{ r-version }} Runtime
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
r-version: ${{ r-version }}
#- name: Install R Package Dependencies
# uses: r-lib/actions/setup-r-dependencies@v2
@ -130,10 +134,10 @@ jobs:
# with:
# working-directory: ./R
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
#- name: Set up Python ${{ python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ python-version }}
- name: Install dependencies
working-directory: ./Python