Skip to content

Commit

Permalink
Inverted build order
Browse files Browse the repository at this point in the history
  • Loading branch information
androidWG committed Dec 16, 2023
1 parent b85c258 commit 47794fb
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,42 @@ permissions:
contents: read

jobs:
test:
build:
strategy:
matrix:
os: [ windows-latest, ubuntu-latest ]

runs-on: ${{ matrix.os }}

# TODO: Add cache support
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Setup environment
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install libcairo-dev libgirepository1.0-dev
fi
python -m pip install packaging pipenv psutil
python setup.py setup
# - name: Get pip cache dir
# id: pipenv-cache
# run: |
# echo "dir=$(pipenv --venv)" >> $GITHUB_OUTPUT
- name: Run tests
run: python setup.py test
build:
- name: Build
run: python setup.py build
- name: Upload files
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }} dist files
path: dist/discord.fm-*
test:
strategy:
matrix:
os: [ windows-latest, ubuntu-latest ]

runs-on: ${{ matrix.os }}

# TODO: Add cache support
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
Expand All @@ -51,18 +56,9 @@ jobs:
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt install libgirepository1.0-dev
sudo apt-get install libcairo-dev libgirepository1.0-dev
fi
python -m pip install packaging pipenv psutil
python setup.py setup
# - name: Get pip cache dir
# id: pipenv-cache
# run: |
# echo "dir=$(pipenv --venv)" >> $GITHUB_OUTPUT
- name: Build
run: python setup.py build
- name: Upload files
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }} dist files
path: dist/discord.fm-*
- name: Run tests
run: python setup.py test

0 comments on commit 47794fb

Please sign in to comment.