Skip to content

Commit

Permalink
only doc test 15
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdboom committed Apr 9, 2024
1 parent 37b2224 commit fae96ab
Showing 1 changed file with 30 additions and 19 deletions.
49 changes: 30 additions & 19 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ on:
- development

jobs:
free-disk:
runs-on: ubuntu-latest
steps:
- name: Free disk space
run: |
echo "=============================================="
echo "Freeing up disk space on CI system"
echo "=============================================="
df -h
# Deleting ~15GB
rm -rf /usr/share/dotnet/
rm -rf /opt/ghc
rm -rf /usr/local/share/boost
rm -rf /dev/shm/
rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
isort:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -94,41 +111,33 @@ jobs:
languages: python

unit-tests:
needs: free-disk
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11"]
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up pdm
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
cache: true
- name: Free disk space
if: ${{ matrix.os != 'windows-latest' }}
run: |
echo "=============================================="
echo "Freeing up disk space on CI system"
echo "=============================================="
echo "Listing 100 largest packages"
df -h
echo "Removing large packages..."
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y azure-cli google-cloud-cli google-chrome-stable firefox mono-devel
sudo apt-get autoremove -y
sudo apt-get clean
df -h
echo "Removing large directories"
# Deleting ~15GB
rm -rf /usr/share/dotnet/
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf /usr/local/share/boost
rm -rf /dev/shm/
rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up pdm
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
cache: true
- name: Install dependencies
run: |
pdm sync -G full -G test
Expand Down Expand Up @@ -187,6 +196,7 @@ jobs:

documentation:
runs-on: ubuntu-latest
needs: free-disk
steps:
- name: Free disk space
run: |
Expand All @@ -197,7 +207,8 @@ jobs:
# Deleting ~15GB
rm -rf /usr/share/dotnet/
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf /usr/local/share/boost
rm -rf /dev/shm/
rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- name: Check out source repository
Expand Down

0 comments on commit fae96ab

Please sign in to comment.