This repository has been archived by the owner on May 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
193 additions
and
25 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,54 @@ | ||
name: Bok Choy Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
run_tests: | ||
name: Tests | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
python-version: [3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set display to virtual frame buffer | ||
run: export DISPLAY=:99.0 | ||
|
||
- name: Set up test environment | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install xvfb gettext | ||
wget https://github.com/mozilla/geckodriver/releases/download/v0.25.0/geckodriver-v0.25.0-linux64.tar.gz | ||
mkdir geckodriver | ||
tar -xzf geckodriver-v0.25.0-linux64.tar.gz -C geckodriver | ||
export PATH=$PATH:$PWD/geckodriver | ||
export BOKCHOY_HEADLESS=true | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements/base.txt | ||
pip install -r requirements/testing.txt | ||
- name: Install Firefox 61.0 | ||
run: | | ||
sudo apt-get purge firefox | ||
wget "https://ftp.mozilla.org/pub/firefox/releases/46.0/linux-x86_64/en-US/firefox-46.0.tar.bz2" | ||
tar -xjf firefox-46.0.tar.bz2 | ||
sudo mv firefox /opt/firefox | ||
sudo ln -s /opt/firefox/firefox /usr/bin/firefox | ||
- name: Run Acceptance tests | ||
run: xvfb-run --server-args=-ac -- make test-bokchoy | ||
env: | ||
BOKCHOY_HEADLESS: true |
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
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,29 @@ | ||
name: Node CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
run_tests: | ||
name: Tests | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
- name: Install npm dependencies | ||
run: npm install | ||
|
||
- name: Run Js tests | ||
run: make test-js |
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 |
---|---|---|
|
@@ -59,3 +59,5 @@ acceptance_tests/*.png | |
node_modules/ | ||
|
||
testserver/local_settings.py | ||
|
||
venv |
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
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,12 @@ | ||
# Version constraints for pip-installation. | ||
# | ||
# This file doesn't install any packages. It specifies version constraints | ||
# that will be applied if a package is needed. | ||
# | ||
# When pinning something here, please provide an explanation of why. Ideally, | ||
# link to other information that will help people in the future to remove the | ||
# pin when possible. Writing an issue against the offending project and | ||
# linking to it here is good. | ||
|
||
# This file contains all common constraints for edx-repos | ||
-c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt |
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,5 @@ | ||
# Core dependencies for installing other packages | ||
|
||
pip | ||
setuptools | ||
wheel |
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,14 @@ | ||
# | ||
# This file is autogenerated by pip-compile | ||
# To update, run: | ||
# | ||
# make upgrade | ||
# | ||
wheel==0.37.1 | ||
# via -r requirements/pip.in | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
pip==21.3.1 | ||
# via -r requirements/pip.in | ||
setuptools==60.2.0 | ||
# via -r requirements/pip.in |
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,4 @@ | ||
# Dependencies to run compile tools | ||
-c constraints.txt | ||
|
||
pip-tools # Contains pip-compile, used to generate pip requirements files |
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,20 @@ | ||
# | ||
# This file is autogenerated by pip-compile | ||
# To update, run: | ||
# | ||
# make upgrade | ||
# | ||
click==8.0.3 | ||
# via pip-tools | ||
pep517==0.12.0 | ||
# via pip-tools | ||
pip-tools==6.4.0 | ||
# via -r requirements/pip_tools.in | ||
tomli==2.0.0 | ||
# via pep517 | ||
wheel==0.37.1 | ||
# via pip-tools | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# pip | ||
# setuptools |
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