Skip to content

Commit

Permalink
cleanup disk space on github action
Browse files Browse the repository at this point in the history
  • Loading branch information
helpmefindaname committed Oct 6, 2023
1 parent b690fc8 commit a81e1e6
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ on:
branches: [master]

jobs:
delete:
runs-on: ubuntu-latest
steps:
- name: Delete workflow runs
uses: MajorScruffy/[email protected]
with:
repository: flairNLP/flair
older-than-seconds: 21600000 # 8 months -> 8 * 30 * 25 * 60 * 60
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test:
runs-on: ubuntu-latest
env:
Expand All @@ -27,6 +17,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Cleanup Disk Space
- run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
- name: Install Flair dependencies
run: pip install -e .
- name: Install unittest dependencies
Expand Down

0 comments on commit a81e1e6

Please sign in to comment.