add testing for azure #2
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
name: Local functional tests | |
on: [push, pull_request,repository_dispatch] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
azurite-tests-linux: | |
name: Azurite (local azure test server) tests (Linux) | |
runs-on: ubuntu-latest | |
container: 'quay.io/pypa/manylinux2014_x86_64' | |
env: | |
VCPKG_TARGET_TRIPLET: 'x64-linux' | |
GEN: Ninja | |
VCPKG_TOOLCHAIN_PATH: ${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake | |
AZURE_STORAGE_CONNECTION_STRING: 'DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1;' | |
AZURE_STORAGE_ACCOUNT: devstoreaccount1 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: 'true' | |
- name: install Azure test service | |
run: | | |
npm install -g azurite | |
echo -e "[azure-cli]\nname=Azure CLI\nbaseurl=https://packages.microsoft.com/yumrepos/azure-cli\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | tee /etc/yum.repos.d/azure-cli.repo | |
yum install -y azure-cli | |
- name: Setup ManyLinux2014 | |
run: | | |
./duckdb/scripts/setup_manylinux2014.sh general aws-cli ccache ssh openssl python_alias | |
- name: Setup vcpkg | |
uses: lukka/[email protected] | |
with: | |
vcpkgGitCommitId: a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6 | |
# Build extension | |
- name: Build extension | |
env: | |
GEN: ninja | |
run: | | |
make release | |
- name: Launch & populate Azure test service | |
run: | | |
azurite > azurite_log.txt 2>&1 & | |
sleep 10 | |
./scripts/upload_test_files_to_azurite.sh | |
- name: Test extension | |
run: | | |
make test | |
- name: Azure test server log | |
if: always() | |
shell: bash | |
run: | | |
echo "## azurite" | |
cat azurite_log.txt |