-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add foreign key id fields * add permissions * support checking admin teachers * replace permissions * remove unused requirements and fix test discovery * fix unit tests * add module docstrings * pylint disable * create unit tests * call action * use ocadotech org * use sub dir * in .github sub dir * feedback * fix pipeline * graph django models * remove test for now * chore: entity relationship diagram [skip ci] * test 2 pushes in a row * test modifying model fields * chore: entity relationship diagram [skip ci] * remove middle name * chore: entity relationship diagram [skip ci] * add middle_name * chore: entity relationship diagram [skip ci] * remove middle name * chore: entity relationship diagram [skip ci] * use actions * add pytest-xdist --------- Co-authored-by: cfl-bot <[email protected]>
- Loading branch information
Showing
9 changed files
with
82 additions
and
33 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,38 +21,26 @@ jobs: | |
matrix: | ||
python-version: [3.8] | ||
steps: | ||
- name: 🛫 Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🐍 Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
- uses: ocadotechnology/codeforlife-workspace/.github/actions/python/test@main | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: 🛠 Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install pipenv | ||
pipenv install --dev | ||
- name: 🔎 Check Code Format | ||
run: if ! pipenv run black --check .; then exit 1; fi | ||
|
||
- name: 🔎 Check Migrations | ||
run: pipenv run python manage.py makemigrations --check --dry-run | ||
|
||
# TODO: assert code coverage target. | ||
- name: 🧪 Test Code Units | ||
run: pipenv run pytest | ||
docs: | ||
runs-on: ubuntu-latest | ||
needs: [test] | ||
steps: | ||
- uses: ocadotechnology/codeforlife-workspace/.github/actions/python/docs@main | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
release: | ||
concurrency: release | ||
runs-on: ubuntu-latest | ||
needs: [test] | ||
needs: [docs] | ||
if: github.ref_name == 'main' | ||
steps: | ||
- name: 🛫 Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
fetch-depth: 0 | ||
|
@@ -67,10 +55,7 @@ jobs: | |
python -m pip install --upgrade pip | ||
python -m pip install python-semantic-release~=7.33 | ||
- name: ⚙️ Configure Git | ||
run: | | ||
git config --local user.name cfl-bot | ||
git config --local user.email [email protected] | ||
- uses: ocadotechnology/codeforlife-workspace/.github/actions/git/setup-bot@main | ||
|
||
- name: 🚀 Publish Semantic Release | ||
env: | ||
|
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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