Continuous build #209
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: Continuous build | |
on: | |
schedule: | |
- cron: "1 1 1 */1 *" | |
push: | |
branches: [ main, dev*, pg* ] | |
pull_request: | |
branches: [ main, dev*, pg* ] | |
jobs: | |
build: | |
runs-on: [ubuntu-latest] | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ "3.9", "3.10" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# required because the version of git-annex in Ubuntu is too old. | |
- name: Install Neurodebian repos | |
run: | | |
wget -O- http://neuro.debian.net/lists/focal.de-fzj.libre | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list | |
sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com 0xA5D32F012649A5A9 | |
sudo apt-get update | |
# use standalone from Neurodebian | |
# http://neuro.debian.net/pkgs/git-annex-standalone.html | |
- name: Install git-annex | |
run: sudo apt-get install git-annex-standalone | |
- name: Install additional Python dependencies | |
run: | | |
pip install wheel | |
pip install --requirement requirements.txt --quiet | |
pip install datalad | |
pip list | |
env | |
- name: Configure Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "github ci" | |
- name: Test just generate readme | |
run: | | |
echo Testing generation of readme... | |
python nwb_table_readme.py --update_readme_only | |
ls -alt validation_folder | |
- name: Test on limited set of dandisets | |
run: | | |
echo Testing again | |
python nwb_table_readme.py --dandiset_limit | |
ls -alt validation_folder | |
- name: Final file info | |
run: | | |
ls -alt | |
df -h | |
du -h | |
- name: Final version info | |
run: | | |
pip list |