Skip to content

Commit

Permalink
Changes to GitHub Actions
Browse files Browse the repository at this point in the history
 - update OS to Ubuntu 22.04
 - use OS python version
 - run apt-get update
 - remove installation of python3-lxml which is now done by icat-ansible
  • Loading branch information
ajkyffin committed Aug 8, 2023
1 parent 196f0f3 commit 24a81d8
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,21 @@ on:

jobs:
build_and_tests:
runs-on: ubuntu-20.04
continue-on-error: ${{ matrix.experimental }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- version: 11
experimental: false
- version: 17
experimental: true
java_version: [11, 17]

steps:
# Setup Java & Python
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ matrix.version }}
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.9.7"
architecture: x64
java-version: ${{ matrix.java_version }}

- name: Run apt-get update
run: sudo apt-get update

# ICAT Ansible clone and install dependencies
- name: Checkout icat-ansible
Expand Down Expand Up @@ -64,10 +56,6 @@ jobs:
sudo apt-get remove --purge "mysql*"
sudo rm -rf /var/lib/mysql* /etc/mysql
# Needed for `maven_artifact` module on Ansible - lxml is in requirements.txt but doesn't seem to work on GitHub Actions
- name: Install lxml
run: sudo apt-get install python3-lxml

# Create local instance of ICAT
- name: Run ICAT Ansible Playbook
run: |
Expand Down

0 comments on commit 24a81d8

Please sign in to comment.