removed test again #82
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: Add Model | |
on: | |
push: | |
branches: ["master"] | |
jobs: | |
build: | |
# created matrix for future os runs | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-22.04 ] | |
python-version: ["3.9"] | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: master | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
sudo apt-get install datalad | |
python3 -m pip install datalad-osf | |
git config --global user.name "trained_models" | |
git config --global user.email "trained_models" | |
- name: Add model | |
env: | |
OSF_TOKEN: ${{secrets.OSF_TOKEN}} | |
run: | | |
datalad siblings | |
datalad siblings configure -s origin --publish-depends osf-storage | |
# Sanity check | |
# cat .git/config | |
datalad push --to origin -d $GITHUB_WORKSPACE |