1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
# This is a basic workflow to help you get started with Actions
name: CI_backend
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install poetry
run: pip install poetry
- name: Setup Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'poetry'
- name: Install Apt Dependencies
run: |
sudo apt-get update
sudo apt-get install python3-opengl libgl1-mesa-dev libglib2.0-0
- name: Install poetry dependencies
run: poetry install
- name: Run tests
run: |
poetry run py.test dioptas/tests/unit_tests/
|