Merge pull request #117 from slaclab/datagpu-dev #246
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
# ---------------------------------------------------------------------------- | |
# Title : AXI Pcie Core GitHub Actions CI Script | |
# ---------------------------------------------------------------------------- | |
# This file is part of the 'AXI PCIE Core standard library'. It is subject to | |
# the license terms in the LICENSE.txt file found in the top-level directory | |
# of this distribution and at: | |
# https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. | |
# No part of the 'AXI PCIE Core standard library', including this file, may be | |
# copied, modified, propagated, or distributed except according to the terms | |
# contained in the LICENSE.txt file. | |
# ---------------------------------------------------------------------------- | |
# The following environment variables are required for this process: | |
# secrets.GH_TOKEN | |
# secrets.CONDA_UPLOAD_TOKEN_TAG | |
name: AXI-PCIE Core Integration | |
on: [push] | |
jobs: | |
# ---------------------------------------------------------------------------- | |
test_and_document: | |
name: Test And Generate Documentation | |
runs-on: ubuntu-22.04 | |
steps: | |
# This step checks out a copy of your repository. | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 | |
- name: Python Syntax Check | |
run: | | |
python -m compileall -f python/ | |
flake8 --count python/ | |
# ---------------------------------------------------------------------------- | |
gen_release: | |
needs: [test_and_document] | |
uses: slaclab/ruckus/.github/workflows/gen_release.yml@main | |
with: | |
version: '1.0.0' | |
secrets: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
# ---------------------------------------------------------------------------- | |
conda_build_lib: | |
needs: [test_and_document] | |
uses: slaclab/ruckus/.github/workflows/conda_build_lib.yml@main | |
with: | |
version: '1.0.0' | |
secrets: | |
CONDA_UPLOAD_TOKEN_TAG: ${{ secrets.CONDA_UPLOAD_TOKEN_TAG }} | |
# ---------------------------------------------------------------------------- |