Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ name: Deploy static content to Pages
on:
push:
branches:
- master
- master
- main

concurrency:
group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
permissions:
contents: write
jobs:
Expand All @@ -20,12 +24,12 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs mkdocstrings[python] mkdocs-material
- run: mkdocs gh-deploy --force
- run: mkdocs gh-deploy --force
8 changes: 6 additions & 2 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: Publish python poetry package
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
branches: ["main"]

concurrency:
group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}

jobs:
build:
Expand All @@ -18,4 +22,4 @@ jobs:
poetry config virtualenvs.create false
poetry build
echo "Publishing now..."
poetry publish -u "__token__" --password "$PYPI_TOKEN" || true
poetry publish -u "__token__" --password "$PYPI_TOKEN" || true
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ name: Tests
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main", "master" ]
branches: ["main", "master"]
pull_request:
branches: [ "main", "master" ]
branches: ["main", "master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}

jobs:
test:
# The type of runner that the job will run on
Expand All @@ -25,7 +29,7 @@ jobs:

# Runs a single command using the runners shell
- name: Install dependencies
run: |
run: |
sudo apt update -y
sudo apt install gnome-keyring
pip install --upgrade pip
Expand Down
Loading