Skip to content

Commit

Permalink
Merge pull request #1 from Azure/port_from_legacy
Browse files Browse the repository at this point in the history
Port from legacy
  • Loading branch information
Andyli1007 authored Apr 19, 2024
2 parents d10cf98 + 264eb92 commit fa5accc
Show file tree
Hide file tree
Showing 115 changed files with 9,731 additions and 409 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '16 14 * * 2'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: python

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
30 changes: 30 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Tests

on:
push:
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

name: Test with Python ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install msccl and dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests and check at least 90% coverage
run: |
pytest
Loading

0 comments on commit fa5accc

Please sign in to comment.