Skip to content

Instantly share code, notes, and snippets.

@orphefs
Created March 10, 2022 13:22
Show Gist options
  • Save orphefs/db6a82e04428aa5b74791125e81bd3ef to your computer and use it in GitHub Desktop.
Save orphefs/db6a82e04428aa5b74791125e81bd3ef to your computer and use it in GitHub Desktop.
name: Github action to run tests
on: pull_request
jobs:
Run-tests:
runs-on: ubuntu-latest
steps:
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.8"
- uses: iterative/setup-dvc@v1
- name: "Install some_dependency"
run: |
sudo apt-get install -y some_dependency
- name: "Install requirements"
run: pip install -r requirements.txt
- name: "Pull data"
run: |
dvc remote modify my_data_remote url azure://my_data_dir/
dvc remote modify my_data_remote account_name 'my_account_name'
dvc pull -f
- name: "Run tests"
run: |
export LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6:$LD_PRELOAD
python -m pytest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment