-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #577 from alan-turing-institute/develop
REG Hack Week Changes
- Loading branch information
Showing
34 changed files
with
6,421 additions
and
1,163 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CI | ||
|
||
# Enable Buildkit and let compose use it to speed up image building | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
COMPOSE_DOCKER_CLI_BUILD: 1 | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main", "develop" ] | ||
|
||
push: | ||
branches: [ "main", "develop" ] | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout Code Repository | ||
uses: actions/checkout@main | ||
|
||
- name: Build AIrsenal | ||
run: docker build -t airsenal . | ||
|
||
- name: Code quality checks | ||
run: | | ||
docker run airsenal poetry run pre-commit run --all-files | ||
- name: Tests | ||
run: | | ||
docker run -e "FPL_TEAM_ID=2779516" airsenal poetry run pytest |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
FROM python:3.8-slim-buster | ||
FROM python:3.9-slim-buster | ||
|
||
RUN apt-get update && \ | ||
apt-get install build-essential git sqlite3 curl -y && \ | ||
pip install -U setuptools pygmo poetry | ||
|
||
WORKDIR /airsenal | ||
|
||
COPY . /airsenal | ||
|
||
RUN apt-get update && apt-get install build-essential git sqlite3 -y && \ | ||
pip install pygmo && pip install . | ||
RUN poetry install --extras "api" | ||
|
||
CMD ["airsenal_run_pipeline"] | ||
CMD ["poetry", "run", "airsenal_run_pipeline"] |
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
Large diffs are not rendered by default.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.