First attempt at using Gitea Actions to run tests.

This commit is contained in:
Dan Helfman 2024-03-06 08:32:55 -08:00
parent 2f6ad9d173
commit 43c7c3b6be
5 changed files with 14 additions and 7 deletions

View file

@ -0,0 +1,11 @@
name: test
run-name: ${{ gitea.actor }} is running tests
on: [push]
jobs:
test:
runs-on: host
steps:
- uses: actions/checkout@v4
- run: scripts/run-end-to-end-tests

View file

@ -99,7 +99,7 @@ see below) and [Docker Compose](https://docs.docker.com/compose/install/).
Then run: Then run:
```bash ```bash
scripts/run-end-to-end-dev-tests scripts/run-end-to-end-tests
``` ```
This script assumes you have permission to run `docker`. If you don't, then This script assumes you have permission to run `docker`. If you don't, then

View file

@ -3,7 +3,7 @@
# This script installs test dependencies and runs all tests, including end-to-end tests. It # This script installs test dependencies and runs all tests, including end-to-end tests. It
# is designed to run inside a test container, and presumes that other test infrastructure like # is designed to run inside a test container, and presumes that other test infrastructure like
# databases are already running. Therefore, on a developer machine, you should not run this script # databases are already running. Therefore, on a developer machine, you should not run this script
# directly. Instead, run scripts/run-end-to-end-dev-tests # directly. Instead, run scripts/run-end-to-end-tests
# #
# For more information, see: # For more information, see:
# https://torsion.org/borgmatic/docs/how-to/develop-on-borgmatic/ # https://torsion.org/borgmatic/docs/how-to/develop-on-borgmatic/
@ -25,8 +25,5 @@ python3 -m pip install --no-cache --upgrade pip==22.2.2 setuptools==64.0.1
pip3 install --ignore-installed tox==4.11.3 pip3 install --ignore-installed tox==4.11.3
export COVERAGE_FILE=/tmp/.coverage export COVERAGE_FILE=/tmp/.coverage
if [ "$1" != "--end-to-end-only" ]; then
tox --workdir /tmp/.tox --sitepackages tox --workdir /tmp/.tox --sitepackages
fi
tox --workdir /tmp/.tox --sitepackages -e end-to-end tox --workdir /tmp/.tox --sitepackages -e end-to-end

View file

@ -56,7 +56,6 @@ services:
tty: true tty: true
working_dir: /app working_dir: /app
entrypoint: /app/scripts/run-full-tests entrypoint: /app/scripts/run-full-tests
command: --end-to-end-only
depends_on: depends_on:
- postgresql - postgresql
- postgresql2 - postgresql2