Skip to content

Commit

Permalink
[+] github actions autotests
Browse files Browse the repository at this point in the history
  • Loading branch information
gmankab committed Jun 9, 2024
1 parent 5f84abf commit f7b4d42
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: autotests
on: [push, pull_request]
jobs:
autotests-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: dependencies
run: |
python -m venv .venv
.venv/bin/pip install -U pip
.venv/bin/pip install -U tortoise-orm aiogram fastapi rich ruff pyright
- name: tests
run: tests=true .venv/bin/python galaxy_backend
autotests-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: dependencies
run: |
python -m venv .venv
.venv/scripts/pip install -U pip
.venv/scripts/pip install -U tortoise-orm aiogram fastapi rich ruff pyright
- name: tests
run: |
$env:tests = 'true'
.venv/scripts/python galaxy_backend

0 comments on commit f7b4d42

Please sign in to comment.