Skip to content

Commit

Permalink
Remove the ispyb database form the dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-riggs committed Aug 23, 2024
1 parent 9868053 commit 6a030ea
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ jobs:
docker run --detach --name rabbitmq -p 127.0.0.1:5672:5672 -p 127.0.0.1:15672:15672 test-rabbitmq
docker container list -a
- name: Get pre-built package
- name: Get database
uses: actions/download-artifact@v4
with:
name: package-distributions
path: dist/
name: database
path: database/

- name: Install package
run: |
Expand All @@ -78,7 +78,7 @@ jobs:
run: |
set -eu
cp ".github/workflows/config/my.cnf" .my.cnf
tar xfz "dist/ispyb-database.tar.gz"
tar xfz "database/ispyb-database.tar.gz"
printf 'Waiting for MySQL database to accept connections'
until mariadb --defaults-file=.my.cnf -e "SHOW DATABASES" >/dev/null; do printf '.'; sleep 10; done
Expand Down
30 changes: 16 additions & 14 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,28 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: pip install --disable-pip-version-check collective.checkdocs wheel
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build python package
run: |
set -ex
python setup.py sdist bdist_wheel
mkdir -p dist/pypi
shopt -s extglob
mv -v dist/!(pypi) dist/pypi
git archive HEAD | gzip > dist/repo-source.tar.gz
ls -laR dist
run: python3 -m build
- name: Download ISPyB DB schema v${{ env.DATABASE_SCHEMA }} for tests
run: wget -t 3 --waitretry=20 https://github.com/DiamondLightSource/ispyb-database/releases/download/v${{ env.DATABASE_SCHEMA }}/ispyb-database-${{ env.DATABASE_SCHEMA }}.tar.gz -O dist/ispyb-database.tar.gz
- name: Store artifact
run: |
mkdir database
wget -t 3 --waitretry=20 https://github.com/DiamondLightSource/ispyb-database/releases/download/v${{ env.DATABASE_SCHEMA }}/ispyb-database-${{ env.DATABASE_SCHEMA }}.tar.gz -O database/ispyb-database.tar.gz
- name: Store built package artifact
uses: actions/upload-artifact@v4
with:
name: package-distributions
path: dist/
- name: Check package description
run: python setup.py checkdocs
- name: Store database artifact
uses: actions/upload-artifact@v4
with:
name: database
path: database/

tests:
name: Call ci unit tests workflow
Expand Down

0 comments on commit 6a030ea

Please sign in to comment.