Skip to content

Commit

Permalink
Run everything inside of the docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
tillprochaska committed Feb 2, 2024
1 parent e3351e6 commit 575825b
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,18 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Show ref
run: |
echo "$GITHUB_REF"
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: make dev
run: echo "$GITHUB_REF"
- name: Start Docker containers
run: docker compose up -d
- name: Run the code format check
run: make format-check
run: docker compose exec shell make format-check
- name: Run the linter
run: make lint
run: docker compose exec shell make lint
- name: Run the tests
# Some tests rely on the package being installed
run: docker compose run --rm shell bash -c "make install && make tests"
run: docker compose exec shell bash -c "make install && make tests"
- name: Build a distribution
run: |
python setup.py sdist bdist_wheel
run: docker compose exec shell python setup.py sdist bdist_wheel
- name: Publish a Python distribution to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 575825b

Please sign in to comment.