ci: Add pip cache #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous build and release docker image | |
on: | |
push: | |
branches: | |
- master | |
- main | |
permissions: | |
contents: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
cache: 'pip' | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- run: | | |
pip install tests/ | |
pytest tests/ | |
main: | |
runs-on: ubuntu-latest | |
needs: | |
- test | |
steps: | |
- uses: timo-reymann/docker-semantic-release-gh-action@v1 | |
with: | |
image: timoreymann/chrooted-ftp | |
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | |
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} |