-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cache for apt packages and add step to prepare config file
- Loading branch information
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |