Skip to content

Commit

Permalink
Add cache for apt packages and add step to prepare config file
Browse files Browse the repository at this point in the history
  • Loading branch information
kimdre authored Jan 19, 2024
1 parent 650c45a commit e08b82f
Showing 1 changed file with 11 additions and 4 deletions.
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

0 comments on commit e08b82f

Please sign in to comment.