mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-07-24 03:09:56 +00:00
40 lines
667 B
YAML
40 lines
667 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:
|
|
- uses: actions/checkout@v4
|
|
|
|
- run: pacman --noconfirm -Syu base-devel git python-tox
|
|
|
|
- name: Run check and tests
|
|
run: tox
|
|
|
|
- name: Generate documentation and check if there are untracked changes
|
|
run: tox -e docs
|
|
|
|
- uses: numtide/clean-git-action@v2
|