Skip to content

Commit

Permalink
🚇 Adjust CI workflows to use staging branches
Browse files Browse the repository at this point in the history
  • Loading branch information
s-weigand committed Jun 30, 2024
1 parent 5a63365 commit b10882d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 23 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
steps:
- name: Set example list output
id: create-example-list
uses: glotaran/pyglotaran-examples@main
uses: glotaran/pyglotaran-examples@staging_rewrite
with:
example_name: set example list
set_example_list: true
examples_branch: staging_rewrite

run-examples:
name: "Run Example: "
Expand All @@ -41,14 +42,16 @@ jobs:
- name: Install pyglotaran-extras
run: |
pip install wheel
python -m pip install git+https://github.com/glotaran/pyglotaran@staging
pip install .
- name: ${{ matrix.example_name }}
id: example-run
uses: glotaran/pyglotaran-examples@main
uses: glotaran/pyglotaran-examples@staging_rewrite
with:
example_name: ${{ matrix.example_name }}
install_extras: false
examples_branch: staging_rewrite

- name: Upload Example Plots Artifact
uses: actions/upload-artifact@v4
Expand All @@ -57,6 +60,7 @@ jobs:
path: ${{ steps.example-run.outputs.notebook-path }}

collect-artifacts:
if: always()
name: "Collect artifacts and reupload as bundel"
runs-on: ubuntu-latest
needs: [run-examples]
Expand Down
43 changes: 22 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
run: |
python -m pip install -U pip wheel
python -m pip install -r requirements_pinned.txt
python -m pip install git+https://github.com/glotaran/pyglotaran@staging
python -m pip install -U -e ".[test]"
- name: Run tests
Expand All @@ -122,32 +123,32 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test-pyglotaran-dev:
name: Test pyglotaran dev
runs-on: ubuntu-latest
needs: [pre-commit, docs]
# test-pyglotaran-dev:
# name: Test pyglotaran dev
# runs-on: ubuntu-latest
# needs: [pre-commit, docs]

steps:
- name: Check out repo
uses: actions/checkout@v4
# steps:
# - name: Check out repo
# uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
# - name: Set up Python 3.10
# uses: actions/setup-python@v5
# with:
# python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install -U pip wheel
python -m pip install -r requirements_pinned.txt
python -m pip install -U -e ".[test]"
python -m pip install git+https://github.com/glotaran/pyglotaran
# - name: Install dependencies
# run: |
# python -m pip install -U pip wheel
# python -m pip install -r requirements_pinned.txt
# python -m pip install -U -e ".[test]"
# python -m pip install git+https://github.com/glotaran/pyglotaran

- name: Show installed dependencies
run: pip freeze
# - name: Show installed dependencies
# run: pip freeze

- name: Run tests
run: python -m pytest --nbval --cov=./ --cov-report term --cov-report xml --cov-config pyproject.toml tests
# - name: Run tests
# run: python -m pytest --nbval --cov=./ --cov-report term --cov-report xml --cov-config pyproject.toml tests

deploy:
name: Deploy to PyPi
Expand Down

0 comments on commit b10882d

Please sign in to comment.