Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cache for apt packages and add step to prepare config file #9

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ jobs:
python-version: 3.12
cache: "pip"

- name: Install dependencies
- name: Install PyCurl
uses: awalsh128/[email protected]
with:
packages: libcurl4-openssl-dev libssl-dev python3-pycurl
version: 1.0

- name: Install Python dependencies
run: |
sudo apt-get update
sudo apt-get -y install libcurl4-openssl-dev libssl-dev python3-pycurl
pip install -r requirements.txt

- name: Generate config file
Expand All @@ -35,7 +39,10 @@ jobs:
python3 main.py --generate --configfile ${{ env.FILEPATH }}
cat ${{ env.FILEPATH }}

- name: Run app
- name: Prepare test config file
run: |
echo "${{ secrets.TEST_CONFIG }}" > ${{ env.FILEPATH }}

- name: Run app
run: |
python3 main.py --configfile ${{ env.FILEPATH }} --continuous --cron "${{ env.CRON }}" --run-once 2>&1