forked from aidhayes/project-symmetry
-
Notifications
You must be signed in to change notification settings - Fork 7
32 lines (26 loc) · 864 Bytes
/
main.yml
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
name: Flask test suite
run-name: ${{ github.actor }} is building symmetry 🚀
on: [push]
jobs:
Test_API_endpoints:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
cd api
pip install -r requirements.txt
python -m nltk.downloader punkt
- name: Run Pytest
run: python -m pytest
- name: Install PyInstaller
run: pip install pyinstaller
- name: Build with PyInstaller
run: pyinstaller -F api/flaskr/pyapp.py
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."