From d4f1e8f2983cd7416c04548d0db0e718e6990974 Mon Sep 17 00:00:00 2001 From: Joy Zhang Date: Tue, 13 Aug 2024 17:02:53 -0700 Subject: [PATCH] Create build-dev.yml --- .github/workflows/build-dev.yml | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build-dev.yml diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml new file mode 100644 index 00000000..1ba04624 --- /dev/null +++ b/.github/workflows/build-dev.yml @@ -0,0 +1,37 @@ +# 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: build-latest + +on: + push: + branches: [ bsm2 ] + pull_request: + branches: [ bsm2 ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.10"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install pytest + pip install --no-cache-dir git+https://github.com/BioSTEAMDevelopmentGroup/thermosteam.git@qsdsan + pip install --no-cache-dir git+https://github.com/BioSTEAMDevelopmentGroup/biosteam.git@qsdsan + pip install --no-cache-dir git+https://github.com/QSD-Group/QSDsan.git@dev + pip install --no-cache-dir -r requirements.txt + - name: Test with pytest + run: | + pytest