Use docker #14
Workflow file for this run
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: Github Actions Demo | |
on: | |
pull_request: | |
jobs: | |
run_tests: | |
name: ${{ github.actor }} is testing out github actions | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.11'] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
export PATH="$HOME/.poetry/bin:$PATH" | |
- name: Set up python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: poetry install --no-root | |
- name: Run tests | |
run: | | |
echo "DJANGO_SECRET_KEY=django-secret-key" > ./.env | |
poetry run pytest |