Add/flux framework scheduler #664
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: unitests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
# The debug job is meant for debugging CI related issues. | |
debug: | |
# Comment out the following line to enable. | |
#if: ${{ false }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r test/requirements.txt | |
pip install -r docs/requirements.txt | |
pip install coverage | |
- name: setup | |
run: | | |
ln -s pavilion.yaml.ci test/data/pav_config_dir/pavilion.yaml | |
echo "working_dir: $(pwd)/test/working_dir" >> test/data/pav_config_dir/pavilion.yaml | |
#echo "spack_path: $(pwd)/test/spack" >> test/data/pav_config_dir/pavilion.yaml | |
#./test/utils/spack_setup test | |
# Set run_tests to run only the specific tests you need to fix. | |
- name: run_tests | |
run: | | |
./test/run_tests | |
- name: zip_working_dir | |
if: always() | |
run: | | |
# If we don't zip this ourselves, it will run infinitely due to | |
# symlink loops. | |
cd test | |
./utils/make_symlinks_relative working_dir | |
zip -yr working_dir.zip working_dir | |
- name: logs | |
if: always() | |
uses: actions/upload-artifact@v1 | |
with: | |
name: test_output | |
path: test/working_dir.zip | |
style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r test/requirements.txt | |
pip install -r docs/requirements.txt | |
- name: setup | |
run: | | |
ln -s pavilion.yaml.ci test/data/pav_config_dir/pavilion.yaml | |
echo "working_dir: $(pwd)/test/working_dir" >> test/data/pav_config_dir/pavilion.yaml | |
echo "spack_path: $(pwd)/test/spack" >> test/data/pav_config_dir/pavilion.yaml | |
- name: run_tests | |
run: | | |
sudo -E su $USER -c "PATH=$PATH; ./test/run_tests -q -o style -o debug_prints" | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
pip install -r test/requirements.txt | |
pip install -r docs/requirements.txt | |
- name: setup | |
run: | | |
ln -s pavilion.yaml.ci test/data/pav_config_dir/pavilion.yaml | |
echo "working_dir: $(pwd)/test/working_dir" >> test/data/pav_config_dir/pavilion.yaml | |
echo "spack_path: $(pwd)/test/spack" >> test/data/pav_config_dir/pavilion.yaml | |
- name: run_tests | |
run: ./test/run_tests -o 'doc*' -q | |
unittests-3_6: | |
runs-on: ubuntu-20.04 | |
needs: | |
- style | |
- docs | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Set up Python 3.6 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.6 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r test/requirements.txt | |
pip install -r docs/requirements.txt | |
pip install coverage | |
sphinx-build --version | |
pylint --version | |
- name: setup | |
run: | | |
ln -s pavilion.yaml.ci test/data/pav_config_dir/pavilion.yaml | |
echo "working_dir: $(pwd)/test/working_dir" >> test/data/pav_config_dir/pavilion.yaml | |
echo "spack_path: $(pwd)/test/spack" >> test/data/pav_config_dir/pavilion.yaml | |
./test/utils/spack_setup test | |
- name: run_tests | |
run: | | |
./test/run_tests | |
#coverage xml | |
- name: zip_working_dir | |
if: failure() | |
run: | | |
# If we don't zip this ourselves, it will run infinitely due to | |
# symlink loops. | |
cd test | |
./utils/make_symlinks_relative working_dir | |
zip -yr working_dir.zip working_dir | |
- name: logs | |
if: failure() | |
uses: actions/upload-artifact@v1 | |
with: | |
name: test_output_2.6 | |
path: test/working_dir.zip | |
# - name: codecov-upload | |
# uses: codecov/codecov-action@v2 | |
# with: | |
# fail_ci_if_error: true | |
# token: c1100f28-f36f-4b92-8ba5-ec907a1bfea6 | |
unittests-3_10: | |
runs-on: ubuntu-latest | |
needs: | |
- style | |
- docs | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r test/requirements.txt | |
pip install -r docs/requirements.txt | |
- name: setup | |
run: | | |
ln -s pavilion.yaml.ci test/data/pav_config_dir/pavilion.yaml | |
echo "working_dir: $(pwd)/test/working_dir" >> test/data/pav_config_dir/pavilion.yaml | |
echo "spack_path: $(pwd)/test/spack" >> test/data/pav_config_dir/pavilion.yaml | |
./test/utils/spack_setup test | |
- name: run_tests | |
run: | | |
sudo -E su $USER -c "PATH=$PATH; ./test/run_tests" | |
- name: zip_working_dir | |
if: failure() | |
run: | | |
# If we don't zip this ourselves, it will run infinitely due to | |
# symlink loops. | |
cd test | |
./utils/make_symlinks_relative working_dir | |
zip -yr working_dir.zip working_dir | |
- name: logs | |
if: failure() | |
uses: actions/upload-artifact@v1 | |
with: | |
name: test_output_2.10 | |
path: test/working_dir.zip |