Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Jan 2, 2025
1 parent 9db1efa commit 5d28e05
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ jobs:
sudo wget https://github.com/jgm/pandoc/releases/download/3.1.8/pandoc-3.1.8-1-amd64.deb
sudo dpkg -i pandoc-3.1.8-1-amd64.deb
# rm because hextof_workflow notebook can not run outside maxwell
- name: copy tutorial files to docs
run: |
cp -r $GITHUB_WORKSPACE/tutorial $GITHUB_WORKSPACE/docs/
Expand All @@ -75,17 +74,12 @@ jobs:
needs: build
steps:
- name: Checkout docs repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/docs
token: ${{ secrets.GITHUB_TOKEN }}
path: 'docs-repo'

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

- name: Setup SSH
uses: webfactory/[email protected]
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ jobs:
steps:
# Check out repo and set up Python
- uses: actions/checkout@v4
with:
fetch-depth: 0

# see https://stackoverflow.com/questions/57612428/cloning-private-github-repository-within-organisation-in-actions and https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
# see https://stackoverflow.com/questions/57612428/cloning-private-github-repository-within-organisation-in-actions and https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
- name: Fetch test data
run: |
eval `ssh-agent -s`
Expand All @@ -37,6 +39,7 @@ jobs:
- name: Install package
run: |
uv pip install ".[dev]"
# Linting steps, execute all linters even if one fails
- name: ruff
run:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "release"
cancel-in-progress: false

env:
UV_SYSTEM_PYTHON: true

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/testing_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
steps:
# Check out repo and set up Python
- uses: actions/checkout@v4
with:
fetch-depth: 0

# see https://stackoverflow.com/questions/57612428/cloning-private-github-repository-within-organisation-in-actions and https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
- name: Fetch test data
Expand All @@ -40,7 +42,7 @@ jobs:
- name: Install package
run: |
uv pip install ".[dev]"
uv pip install -e ".[dev]"
# Run pytest with coverage report, saving to xml
- name: Run tests on python 3.8
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/testing_multiversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ jobs:
steps:
# Check out repo and set up Python
- uses: actions/checkout@v4
with:
fetch-depth: 0

# see https://stackoverflow.com/questions/57612428/cloning-private-github-repository-within-organisation-in-actions and https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
# see https://stackoverflow.com/questions/57612428/cloning-private-github-repository-within-organisation-in-actions and https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
- name: Fetch test data
run: |
eval `ssh-agent -s`
Expand All @@ -46,7 +48,6 @@ jobs:
run: |
uv pip install ".[dev]"
# Use cached python and dependencies, install poetry
- name: Run tests on python ${{matrix.python-version}}
run: |
pytest --full-trace --show-capture=no -sv -n auto tests/

0 comments on commit 5d28e05

Please sign in to comment.