-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ensure tests are running (#27524)
- Loading branch information
M. Zulqarnain
authored
Jun 7, 2021
1 parent
a9d6488
commit 5eaf791
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Ensure Unit Tests Running | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
run_tests: | ||
name: Test | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
python-version: ['3.8'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Required Packages | ||
run: | | ||
sudo apt-get update && sudo apt-get install libxmlsec1-dev | ||
sudo systemctl start mongod | ||
- name: Install Python Dependencies | ||
run: | | ||
pip install setuptools wheel | ||
pip install -r requirements/edx/testing.txt | ||
- name: Collect Tests | ||
env: | ||
STUDIO_CFG: lms/envs/bok_choy.yml | ||
run: for dir in $(find . -name "pytest.ini" -exec dirname {} \;); do pytest --collect-only $dir; done |