added workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python application | |
on: | |
push: | |
branches: [ "main" ] | |
schedule: | |
- cron: '0 0 * * 0' # This runs the workflow every Sunday at midnight UTC | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pdm | |
cd examples\basic | |
pdm install | |
pdm pack -m runway:main | |
- name: Run tests | |
run: | | |
cd examples\basic | |
python zipapprobot.pyz . |