40 lines
1015 B
YAML
40 lines
1015 B
YAML
name: Run Tests
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
on: [push]
|
|
|
|
jobs:
|
|
run_tests:
|
|
runs-on: ubuntu-latest
|
|
container: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- name: Checkout Codebase
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
- name: Configure and install postgres
|
|
run: |
|
|
apt update
|
|
apt install -y postgresql
|
|
service postgresql start
|
|
sudo -u postgres -s psql -U postgres -d postgres -c "alter user postgres with password 'postgres';"
|
|
|
|
|
|
# - uses: pdm-project/setup-pdm@v3
|
|
# with:
|
|
# python-version: 3.10
|
|
# token: ${{ secrets.GH_TOKEN }}
|
|
|
|
|
|
# - name: Install dependencies
|
|
# run: cd ${{ gitea.workspace }} && pdm install
|
|
|
|
|
|
# - name: Run Django tests
|
|
# env:
|
|
# DB_HOST: 127.0.0.1
|
|
# DB_NAME: gastronaut
|
|
# DB_USER: postgres
|
|
# DB_PASSWORD: test123
|
|
|
|
# run: |
|
|
# cd ${{ gitea.workspace }} && pdm run manage.py test |