mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-06-27 14:22:10 +00:00
This commit includes the following changes * Bump github actions * Update tests github action to check documentation and streamline process * Update test cases to use temporary directories as roots * Simplify tox.ini
42 lines
749 B
YAML
42 lines
749 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
schedule:
|
|
- cron: 1 0 * * *
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
run-tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
image: archlinux:base
|
|
options: -w /build
|
|
volumes:
|
|
- ${{ github.workspace }}:/build
|
|
|
|
steps:
|
|
- run: pacman --noconfirm -Syu base-devel git python-tox
|
|
|
|
- run: git config --global --add safe.directory *
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Run check and tests
|
|
run: tox
|
|
|
|
- name: Generate documentation and check if there are untracked changes
|
|
run: |
|
|
tox -e docs
|
|
[ -z "$(git status --porcelain docs/*.rst)" ]
|