diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3a62fac..79aa5dc 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -16,7 +16,6 @@ jobs: python-version: '3.10' - name: Install dependencies run: | - pip3 install pip-tools make install-dev - name: Build run: | diff --git a/.github/workflows/publish-library.yml b/.github/workflows/publish-library.yml new file mode 100644 index 0000000..60dfc42 --- /dev/null +++ b/.github/workflows/publish-library.yml @@ -0,0 +1,33 @@ +name: Publish library in release + +on: + push: + branches: [ master, dev ] + pull_request: + branches: [ dev ] + +jobs: + build: + name: Make library + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.10' + - name: Install dependencies + run: | + make install-dev + - name: Build + run: | + cb_fetch_data library/DATA_SOURCES.yml -o library.h5 + - name: Upload library to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: library.h5 + asset_name: latest_library.h5 + tag: ${{ github.ref }} + overwrite: true + body: "Latest library" \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a449823..6cbce40 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,7 +1,4 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Python package +name: Run tests on: push: