Merge pull request 'Fix the install step of the Gitea workflow' (#36) from fix-ci-install-step into main
Reviewed-on: #36
This commit was merged in pull request #36.
This commit is contained in:
+11
-28
@@ -1,43 +1,26 @@
|
|||||||
# Continuous integration for the Quiz Game.
|
|
||||||
#
|
|
||||||
# Run by Gitea Actions. The file lives in .gitea/workflows, not .github/workflows:
|
|
||||||
# GitHub refuses pushes that touch .github/workflows from a token without the
|
|
||||||
# workflow scope, and that stopped the push mirror to GitHub. Runs the same
|
|
||||||
# checks as the README, "Run the tests".
|
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checks:
|
checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repository
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
- uses: actions/setup-python@v5
|
||||||
|
|
||||||
- name: Set up Python 3.13
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
with:
|
||||||
python-version: "3.13"
|
python-version: "3.13"
|
||||||
|
- name: Install
|
||||||
- name: Install the development tools
|
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
python -m pip install --group dev
|
python -m pip install -e ".[dev]"
|
||||||
|
- name: Tests
|
||||||
- name: Lint
|
|
||||||
run: ruff check src tests
|
|
||||||
|
|
||||||
- name: Check formatting
|
|
||||||
run: ruff format --check src tests
|
|
||||||
|
|
||||||
- name: Check types
|
|
||||||
run: mypy --strict src tests
|
|
||||||
|
|
||||||
- name: Run the tests
|
|
||||||
run: python -m pytest
|
run: python -m pytest
|
||||||
|
- name: Lint
|
||||||
|
run: python -m ruff check src tests
|
||||||
|
- name: Format check
|
||||||
|
run: python -m ruff format --check src tests
|
||||||
|
- name: Types
|
||||||
|
run: python -m mypy src tests
|
||||||
|
|||||||
Reference in New Issue
Block a user