Add label triage to cuda, private test workflows #73
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: Test (Linux, private) | ||
on: | ||
pull_request: | ||
branches: [main, 1.0.x, 1.1.x] | ||
schedule: | ||
- cron: "0 10 * * *" # runs at 10:00 UTC -> 03:00 PST every day | ||
workflow_dispatch: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
test: | ||
if: contains(github.event.pull_request.labels.*.name, "private-tests") || contains(github.event.pull_request.labels.*.name, "all-tests") || contains(github.event_name, "schedule") || contains(github.event_name, "workflow_dispatch") | ||
Check failure on line 16 in .github/workflows/test_linux_private.yml GitHub Actions / Test (Linux, private)Invalid workflow file
|
||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -e {0} # -e to fail on error | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python: ["3.11"] | ||
environment: | ||
name: private_test | ||
permissions: | ||
id-token: write | ||
name: ${{ matrix.name }} Python ${{ matrix.python }} private | ||
env: | ||
OS: ${{ matrix.os }} | ||
PYTHON: ${{ matrix.python }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
audience: sts.amazonaws.com | ||
role-to-assume: arn:aws:iam::${{ secrets.AWS_IAM }}:role/scvi-tools_private_test | ||
aws-region: us-west-1 | ||
role-duration-seconds: 3600 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
cache: "pip" | ||
cache-dependency-path: "**/pyproject.toml" | ||
- name: Install test dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
- name: Install dependencies | ||
run: | | ||
pip install ".[tests]" | ||
- name: Test | ||
env: | ||
MPLBACKEND: agg | ||
PLATFORM: ${{ matrix.os }} | ||
DISPLAY: :42 | ||
HF_API_TOKEN: ${{ secrets.HF_API_TOKEN }} | ||
run: | | ||
coverage run -m pytest -v --color=yes --private | ||
- name: Report coverage | ||
run: | | ||
coverage report | ||
- name: Upload coverage | ||
uses: codecov/codecov-action@v3 |